/* August 2026 requested accessibility and layout fixes. */
html,
body.ref-theme {
  min-height: 100%;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Refined article navigator */
.article-reading-sidebar {
  top: 128px;
}

.article-toc {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(10, 139, 139, 0.18);
  box-shadow: 0 18px 44px rgba(3, 43, 83, 0.11);
}

.article-toc-header {
  position: relative;
  padding: 26px 24px 23px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(44, 210, 201, 0.36), transparent 42%),
    linear-gradient(135deg, #04366d 0%, #006f82 100%);
}

.article-toc-header::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 15px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
}

.article-toc-header > span {
  display: inline-flex;
  margin: 0 0 8px;
  color: #bff9f4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-toc-header h2 {
  max-width: 240px;
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.15;
}

.article-toc-header p {
  max-width: 245px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.55;
}

.article-toc nav {
  display: grid;
  gap: 0;
  padding: 9px 18px;
}

.article-toc nav a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid #e5eef3;
  border-radius: 0;
  color: #092d61;
  line-height: 1.35;
}

.article-toc nav a:last-child {
  border-bottom: 0;
}

.article-toc nav a b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #bce2e2;
  border-radius: 50%;
  color: #008c8d;
  background: #edfafa;
  font-size: 12px;
  transition: .2s ease;
}

.article-toc nav a span {
  font-weight: 750;
}

.article-toc nav a small {
  display: block;
  margin-bottom: 3px;
  color: #008c8d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.article-toc nav a > i {
  color: #54aeb1;
  transition: transform .2s ease;
}

.article-toc nav a:hover {
  padding-left: 8px;
  color: #008c8d;
  background: linear-gradient(90deg, rgba(234,250,250,.9), transparent);
}

.article-toc nav a:hover b {
  color: #fff;
  border-color: #008f91;
  background: #008f91;
}

.article-toc nav a:hover > i {
  transform: translateX(3px);
}

.article-toc-all {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin: 0 18px 18px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #006f78;
  background: #edf9f9;
  font-size: 13px;
  font-weight: 800;
}

.article-toc-all:hover {
  color: #fff;
  background: #008d8d;
}

/* Website disclaimer */
.disclaimer-page {
  padding: 74px 0 86px;
  background:
    radial-gradient(circle at 7% 4%, rgba(0, 157, 154, .08), transparent 25%),
    linear-gradient(180deg, #fff 0%, #f7fbfc 100%);
}

.disclaimer-intro {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 36px;
  padding: 28px 32px;
  border: 1px solid #dfecef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(9, 48, 88, .08);
}

.disclaimer-intro-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #008f91, #005f7c);
  font-size: 31px;
}

.disclaimer-intro h2 {
  margin: 2px 0 6px;
  color: #072f66;
  font-size: clamp(24px, 3vw, 34px);
}

.disclaimer-intro p {
  margin: 0;
  color: #53647a;
  line-height: 1.7;
}

.disclaimer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.disclaimer-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
  border: 1px solid #dfeaec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(9, 48, 88, .055);
}

.disclaimer-card-wide {
  grid-column: 1 / -1;
}

.disclaimer-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #008b8b;
  background: #e9f8f8;
  font-size: 12px;
  font-weight: 900;
}

.disclaimer-card h2 {
  margin: 3px 0 12px;
  color: #092f65;
  font-size: 21px;
}

.disclaimer-card p {
  margin: 0 0 11px;
  color: #4b5e73;
  line-height: 1.75;
}

.disclaimer-card p:last-child {
  margin-bottom: 0;
}

.disclaimer-emergency {
  border-color: #f2d5d2;
  background: linear-gradient(145deg, #fff 0%, #fff7f5 100%);
}

.disclaimer-emergency .disclaimer-number {
  color: #a53d32;
  background: #fbe4e1;
}

.disclaimer-contact {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 5px;
  color: #008b8b;
  font-weight: 800;
}

@media (max-width: 760px) {
  .article-reading-sidebar {
    top: auto;
  }

  .article-toc-header {
    padding: 23px 20px;
  }

  .article-toc nav {
    padding-inline: 14px;
  }

  .disclaimer-page {
    padding: 48px 0 58px;
  }

  .disclaimer-intro,
  .disclaimer-grid {
    grid-template-columns: 1fr;
  }

  .disclaimer-intro {
    gap: 16px;
    padding: 23px;
  }

  .disclaimer-intro-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 25px;
  }

  .disclaimer-card,
  .disclaimer-card-wide {
    grid-column: auto;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    padding: 21px 18px;
  }

  .disclaimer-number {
    width: 36px;
    height: 36px;
  }

  .disclaimer-card h2 {
    font-size: 18px;
  }
}

body.ref-theme.nav-open {
  overflow: hidden !important;
}

.ref-theme .page-wrapper {
  min-height: 100% !important;
  height: auto !important;
  overflow: visible !important;
}

.ref-theme .top-wrap {
  min-height: 100vh;
  height: auto !important;
  overflow: visible !important;
}

.ref-theme .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: FontAwesome !important;
  font-style: normal;
  line-height: 1;
}

.ref-card-image .fa {
  color: #fff;
  font-size: 70px;
}

.ref-card-icon .fa {
  color: #fff;
  font-size: 18px;
}

.ref-stats .fa,
.ref-benefits .fa,
.ref-side-card .fa,
.ref-why .fa {
  color: var(--ref-teal);
}

.ref-side-card li.active .fa,
.ref-side-card li a:hover .fa {
  color: #fff;
}

.ref-footer .footer-bottom,
.ref-footer .footer-bottom p,
.ref-footer .footer-bottom a {
  color: #fff !important;
}

.ref-footer .footer-bottom a:hover,
.ref-footer .footer-bottom a:focus {
  color: #7ee5dc !important;
}

.ref-footer .design-credit {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ref-footer .design-credit {
    white-space: normal;
  }
}

/* Header spacing and responsive mobile composition. */
.ref-header-row {
  min-height: 112px;
  height: auto !important;
  padding: 10px 0;
}

.ref-header .site-nav > .site-container {
  padding-inline: 12px;
}

.mobile-phone {
  display: none;
}

/* Ten-card service carousel with touch, keyboard and arrow controls. */
.ref-services-carousel {
  position: relative;
  padding: 0 48px;
}

.ref-services-carousel .ref-service-cards {
  display: flex !important;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ref-services-carousel .ref-service-cards::-webkit-scrollbar {
  display: none;
}

.ref-services-carousel .ref-service-cards article {
  flex: 0 0 calc((100% - 66px) / 4);
  min-width: 245px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.ref-services-carousel .ref-service-cards article p {
  flex: 1;
}

.ref-services-carousel .service-read-more {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-self: center;
  padding: 8px 12px;
}

.ref-card-image {
  overflow: hidden;
  background: #dceff1;
}

.ref-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 66% center;
  transition: transform .3s ease;
}

.ref-service-cards article:hover .ref-card-image img {
  transform: scale(1.04);
}

.service-image-hernia img,
.service-image-liver img,
.service-image-emergency img,
.service-image-laser img,
.service-image-gyn img {
  object-position: 77% center;
}

.service-image-gallbladder img,
.service-image-colorectal img,
.service-image-endoscopy img {
  object-position: 84% center;
}

.ref-service-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 1px solid #d4e3e8;
  border-radius: 50%;
  background: #fff;
  color: var(--ref-navy);
  box-shadow: 0 6px 18px rgba(4,44,99,.15);
  cursor: pointer;
}

.ref-service-arrow:hover,
.ref-service-arrow:focus-visible {
  background: var(--ref-teal);
  color: #fff;
}

.ref-service-arrow.prev { left: 0; }
.ref-service-arrow.next { right: 0; }

.ref-inline-form select,
.ref-inline-form select option {
  color: var(--ref-navy) !important;
  background-color: #fff !important;
  opacity: 1 !important;
}

.footer-contact-locations li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 8px;
}

.footer-contact-locations li strong {
  color: #fff;
}

.footer-contact-locations li:first-child {
  display: block;
}

.footer-contact-locations li:first-child a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ref-hospital-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ref-hospital-visual.sunshine {
  background: linear-gradient(145deg,#e3f4ed,#74afa5);
}

.ref-hospital-visual.hospital-photo {
  overflow: hidden;
  padding: 0;
  background: #dce9ed;
}

.ref-hospital-visual.hospital-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  object-position: center;
}

.hospital-photo-thumb {
  overflow: hidden;
  width: 100%;
  height: 158px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: #dce9ed;
}

.hospital-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}

.hospital-card:hover .hospital-photo-thumb img {
  transform: scale(1.035);
}

@media (max-width: 1100px) {
  .ref-services-carousel .ref-service-cards article {
    flex-basis: calc((100% - 44px) / 3);
  }
  .ref-hospital-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 142px !important; }

  .ref-header-row {
    min-height: 132px !important;
    height: auto !important;
    display: flex !important;
    flex-wrap: wrap;
    align-content: center;
    gap: 9px 0;
    padding: 10px 0 12px !important;
  }

  .ref-header .brand {
    width: 100% !important;
    max-width: 100% !important;
    height: 61px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .ref-header .brand img {
    display: block;
    width: min(100%, 330px) !important;
    max-height: 61px;
    object-fit: contain;
    object-position: left center;
  }

  .ref-header-row::after {
    display: none !important;
    content: none !important;
  }

  .ref-header .header-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: auto minmax(0,1fr) 42px;
    align-items: center;
    gap: 8px;
  }

  .mobile-phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ref-navy) !important;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }

  .mobile-phone .fa {
    color: var(--ref-teal);
  }

  .mobile-book {
    min-height: 40px;
    padding: 7px 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .ref-header .menu-toggle {
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .ref-header .site-nav {
    top: 132px !important;
    padding-top: 8px;
  }

  .ref-services-carousel {
    padding: 0 30px;
  }

  .ref-services-carousel .ref-service-cards article {
    flex: 0 0 76vw;
    min-width: 0;
  }

  .ref-service-arrow {
    width: 34px;
    height: 34px;
    margin-top: -17px;
  }

  .ref-hospital-grid {
    grid-template-columns: 1fr;
  }
}

/* Split navigation labels from their dropdown controls so labels remain links. */
.ref-header .nav-list > li.nav-parent {
  display: flex;
  align-items: center;
}

.ref-header .nav-list > li.nav-parent > a {
  padding-right: 4px;
}

.ref-header .nav-list > li.nav-parent > .submenu-toggle {
  width: 30px;
  min-width: 30px;
  padding: 0 8px 0 2px;
  justify-content: center;
}

.ref-header .submenu-toggle .fa-chevron-down {
  display: inline-flex;
  width: 12px;
  height: 12px;
  margin: 0;
  font-size: 10px;
  line-height: 1;
  transition: transform .2s ease;
}

.ref-header .has-submenu.open > .submenu-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.ref-header-contact .btn span {
  display: inline-flex;
  margin-right: 8px;
}

@media (max-width: 991px) {
  .ref-header .nav-list > li.nav-parent {
    display: grid;
    grid-template-columns: 1fr 42px;
    align-items: center;
  }

  .ref-header .nav-list > li.nav-parent > a {
    width: 100%;
    padding-right: 8px;
  }

  .ref-header .nav-list > li.nav-parent > .submenu-toggle {
    grid-column: 2;
    grid-row: 1;
    width: 42px;
    min-width: 42px;
    padding: 0;
    border-bottom: 1px solid #edf2f4;
  }

  .ref-header .nav-list > li.nav-parent > .submenu {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.ref-contact-page #hospitals {
  padding-top: 44px;
  padding-bottom: 44px;
}

/* Dedicated Services listing page. */
.page-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--ref-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.services-index-intro {
  padding: 58px 0 42px;
  background: linear-gradient(135deg,#fff 0%,#f2fafb 100%);
}

.services-index-intro .site-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.services-intro-copy h2,
.directory-heading h2,
.services-guidance h2,
.blog-editorial-heading h2,
.blog-topics-heading h2,
.blog-consult-cta h2 {
  margin: 0;
  color: var(--ref-navy);
  font: 800 32px/1.2 "Open Sans",Arial,sans-serif;
}

.services-intro-copy p,
.directory-heading p,
.blog-editorial-heading p {
  color: #536b82;
  line-height: 1.75;
}

.services-assurance {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  overflow: hidden;
  border: 1px solid var(--ref-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ref-shadow);
}

.services-assurance > div {
  padding: 24px 18px;
  text-align: center;
  border-right: 1px solid var(--ref-line);
}

.services-assurance > div:last-child { border-right: 0; }
.services-assurance .fa { color: var(--ref-teal); font-size: 27px; }
.services-assurance span { display: block; margin-top: 10px; color: #536b82; font-size: 12px; line-height: 1.45; }
.services-assurance strong { display: block; color: var(--ref-navy); font-size: 14px; }

.services-directory { padding: 58px 0 70px; }
.directory-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 32px; }
.directory-heading > p { max-width: 470px; margin: 0; }
.services-index-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-index-card { overflow: hidden; border: 1px solid var(--ref-line); border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(4,44,99,.08); transition: transform .25s ease,box-shadow .25s ease; }
.service-index-card:hover { transform: translateY(-6px); box-shadow: 0 15px 34px rgba(4,44,99,.14); }
.service-index-image { position: relative; display: block; height: 190px; overflow: hidden; background: #d9edf1; }
.service-index-image img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; transition: transform .35s ease; }
.service-index-image.image-doctor img { object-position: 79% center; }
.service-index-image.image-scope img { object-position: 86% center; }
.service-index-card:hover .service-index-image img { transform: scale(1.05); }
.service-index-image > span { position: absolute; left: 16px; bottom: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(0,151,146,.94); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.service-index-content { position: relative; min-height: 255px; padding: 29px 24px 23px; }
.service-index-content > .fa { position: absolute; top: -24px; right: 22px; width: 48px; height: 48px; border: 4px solid #fff; border-radius: 50%; background: var(--ref-teal); color: #fff; font-size: 18px; }
.service-index-content h3 { min-height: 48px; margin: 0 0 12px; font-size: 19px; line-height: 1.3; }
.service-index-content h3 a { color: var(--ref-navy); }
.service-index-content p { min-height: 70px; margin-bottom: 18px; color: #536b82; font-size: 13px; line-height: 1.65; }
.service-index-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ref-teal); font-size: 13px; font-weight: 800; }
.services-guidance { padding: 46px 0; background: linear-gradient(110deg,var(--ref-navy),#006b82); color: #fff; }
.services-guidance .site-container { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.services-guidance h2,.services-guidance p { color: #fff; }
.services-guidance p { margin-bottom: 0; }
.services-guidance .page-kicker { color: #79e1dc; }
.services-guidance .site-container > div:last-child { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.guidance-phone { color: #fff!important; font-weight: 800; }

/* Editorial Blog listing page. */
.blog-editorial { padding: 60px 0 70px; background: linear-gradient(145deg,#fff 0%,#f3fafb 100%); }
.blog-editorial-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 32px; }
.blog-editorial-heading > p { max-width: 520px; margin: 0; }
.blog-feature-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px; }
.blog-feature-card,.blog-side-card { overflow: hidden; border: 1px solid var(--ref-line); border-radius: 18px; background: #fff; box-shadow: var(--ref-shadow); }
.blog-feature-image { position: relative; display: block; height: 340px; overflow: hidden; }
.blog-feature-image img { width: 100%; height: 100%; object-fit: cover; object-position: 76% center; }
.blog-feature-image > span,.blog-category { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ref-teal); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.blog-feature-image > span { position: absolute; left: 22px; bottom: 20px; }
.blog-feature-content { padding: 27px 30px 30px; }
.blog-meta { display: flex; gap: 20px; color: #698095; font-size: 12px; }
.blog-meta span,.blog-meta time { display: inline-flex; align-items: center; gap: 6px; }
.blog-feature-content h2 { margin: 14px 0 12px; font-size: 28px; line-height: 1.28; }
.blog-feature-content h2 a,.blog-side-card h3 a { color: var(--ref-navy); }
.blog-feature-content p { color: #536b82; line-height: 1.7; }
.editorial-read-more,.blog-side-card > div > a:last-child { display: inline-flex; align-items: center; gap: 9px; color: var(--ref-teal); font-weight: 800; }
.blog-side-stack { display: grid; gap: 22px; }
.blog-side-card { display: grid; grid-template-columns: 190px 1fr; }
.blog-side-image { min-height: 240px; overflow: hidden; background: #e2f1f3; }
.blog-side-image img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.blog-side-image.image-doctor img { object-position: 82% center; }
.blog-side-card > div { padding: 23px 21px; }
.blog-side-card h3 { margin: 12px 0 10px; font-size: 18px; line-height: 1.38; }
.blog-side-card p { color: #536b82; font-size: 13px; line-height: 1.55; }
.blog-side-card > div > a:last-child { font-size: 12px; }
.blog-topics { padding: 64px 0; }
.blog-topics-heading { margin-bottom: 28px; text-align: center; }
.blog-topic-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; max-width: 1060px; margin: auto; }
.blog-topic-grid > a { display: grid; grid-template-columns: 58px 1fr 25px; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--ref-line); border-radius: 14px; background: #fff; color: var(--ref-navy); box-shadow: 0 5px 18px rgba(4,44,99,.06); transition: border-color .2s ease,transform .2s ease; }
.blog-topic-grid > a:hover { transform: translateY(-3px); border-color: var(--ref-teal); }
.blog-topic-grid > a > .fa { width: 58px; height: 58px; border-radius: 14px; background: #e9f7f6; color: var(--ref-teal); font-size: 24px; }
.blog-topic-grid span { color: #60778c; font-size: 13px; }
.blog-topic-grid strong { display: block; margin-bottom: 5px; color: var(--ref-navy); font-size: 16px; }
.blog-topic-grid b { color: var(--ref-teal); }
.blog-consult-cta { padding: 45px 0; background: linear-gradient(120deg,#eaf8f7,#f8fcfd); }
.blog-consult-cta .site-container { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.blog-consult-cta p { margin-bottom: 0; color: #536b82; }

/* Distinct, topic-specific thumbnails for the home blog cards. */
.ref-blog-image.gastro {
  background: url('../images/service-emergency-gi-ai.jpg') center/cover no-repeat;
}

.ref-blog-image.lap {
  background: url('../images/service-laparoscopic-ai.jpg') center/cover no-repeat;
}

.ref-blog-image.hernia {
  background: url('../images/service-hernia-ai.jpg') center/cover no-repeat;
}

@media (max-width: 1100px) {
  .services-index-grid { grid-template-columns: repeat(2,1fr); }
  .blog-feature-grid { grid-template-columns: 1fr; }
  .blog-side-stack { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .services-index-intro { padding: 38px 0 30px; }
  .services-index-intro .site-container { grid-template-columns: 1fr; gap: 25px; }
  .services-intro-copy h2,.directory-heading h2,.services-guidance h2,.blog-editorial-heading h2,.blog-topics-heading h2,.blog-consult-cta h2 { font-size: 25px; }
  .services-assurance { grid-template-columns: 1fr; }
  .services-assurance > div { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 15px 18px; text-align: left; border-right: 0; border-bottom: 1px solid var(--ref-line); }
  .services-assurance > div:last-child { border-bottom: 0; }
  .services-assurance span { margin: 0; }
  .services-directory { padding: 40px 0 48px; }
  .directory-heading,.blog-editorial-heading { display: block; }
  .directory-heading > p,.blog-editorial-heading > p { margin-top: 13px; }
  .services-index-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-index-image { height: 180px; }
  .service-index-content { min-height: 0; padding: 27px 20px 21px; }
  .service-index-content h3,.service-index-content p { min-height: 0; }
  .services-guidance .site-container,.blog-consult-cta .site-container { display: block; }
  .services-guidance .site-container > div:last-child { margin-top: 22px; flex-wrap: wrap; }
  .blog-editorial { padding: 40px 0 48px; }
  .blog-feature-image { height: 230px; }
  .blog-feature-content { padding: 22px 20px 24px; }
  .blog-feature-content h2 { font-size: 23px; }
  .blog-side-stack { grid-template-columns: 1fr; }
  .blog-side-card { grid-template-columns: 125px 1fr; }
  .blog-side-image { min-height: 220px; }
  .blog-side-card > div { padding: 18px 15px; }
  .blog-side-card h3 { font-size: 16px; }
  .blog-topics { padding: 46px 0; }
  .blog-topic-grid { grid-template-columns: 1fr; }
  .blog-topic-grid > a { grid-template-columns: 48px 1fr 20px; gap: 13px; padding: 17px; }
  .blog-topic-grid > a > .fa { width: 48px; height: 48px; font-size: 20px; }
  .blog-consult-cta .ref-btn { margin-top: 20px; }
}
/* Three consultant locations across every standard inner-page hospital block. */
.hospital-section .hospital-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1320px;
}

.ref-hospital-map {
  display: block;
  margin-top: 8px;
  color: var(--ref-teal, #008f91) !important;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .hospital-section .hospital-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hospital-section .hospital-grid {
    grid-template-columns: 1fr;
  }
}

/* Page-specific inner banners */
.ref-inner-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(236, 247, 251, .99) 0%, rgba(236, 247, 251, .94) 34%, rgba(236, 247, 251, .55) 54%, rgba(236, 247, 251, .08) 74%),
    var(--inner-hero-image, url('../images/banner-services-ai.png'));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ref-inner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(2,46,91,.05));
  pointer-events: none;
}

.ref-inner-hero > .site-container { position: relative; z-index: 1; }
.ref-inner-hero h1 { max-width: 670px; text-wrap: balance; }

/* Redesigned editorial blog view */
.blog-view-redesign .ref-inner-hero { height: 350px; }
.article-reading-shell { padding: 72px 0 82px; background: linear-gradient(180deg, #f7fbfc 0, #fff 420px); }
.article-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 42px; align-items: start; }
.article-reading-main { min-width: 0; }
.article-feature { overflow: hidden; border: 1px solid #dfe9ee; border-radius: 22px; background: #fff; box-shadow: 0 18px 55px rgba(4,44,99,.10); }
.article-feature-media { position: relative; height: 430px; margin: 0; overflow: hidden; }
.article-feature-media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(2,35,75,.52)); }
.article-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.article-feature-media figcaption { position: absolute; left: 28px; bottom: 24px; z-index: 1; padding: 8px 14px; border-radius: 999px; background: #009792; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-feature-body { padding: 42px 48px 48px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 18px; color: #64798d; font-size: 13px; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta i { color: #009792; }
.article-feature-body h2 { max-width: 760px; margin: 0 0 20px; color: #042c63; font: 800 clamp(30px, 3.2vw, 45px)/1.15 "Open Sans", Arial, sans-serif; letter-spacing: -.025em; }
.article-feature-body h3 { margin: 35px 0 16px; color: #042c63; font: 800 23px/1.3 "Open Sans", Arial, sans-serif; }
.article-feature-body p { color: #425d73; font-size: 16px; line-height: 1.85; }
.article-feature-body .article-lead { padding-left: 22px; border-left: 4px solid #10aaa2; color: #173f65; font-size: 19px; line-height: 1.7; }
.article-alert { display: grid; grid-template-columns: 46px 1fr; gap: 16px; margin: 30px 0; padding: 22px 24px; border: 1px solid #f3d5c9; border-radius: 15px; background: #fff8f4; }
.article-alert > i { color: #d76335; font-size: 32px; }
.article-alert strong { display: block; margin-bottom: 5px; color: #8d361a; font-size: 17px; }
.article-alert p { margin: 0; color: #6c4a3c; font-size: 14px; line-height: 1.65; }
.article-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 28px; }
.article-check-grid span { display: flex; gap: 9px; align-items: center; padding: 13px 15px; border-radius: 10px; background: #f1f8f9; color: #173f65; font-weight: 700; }
.article-check-grid i { color: #009792; }
.article-doctor-note { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 24px; margin-top: 34px; padding: 24px; border-radius: 17px; background: linear-gradient(120deg, #eaf7f7, #f8fbfc); }
.article-doctor-note img { width: 120px; height: 138px; border-radius: 13px; object-fit: cover; object-position: top; }
.article-doctor-note span { color: #009792; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.article-doctor-note blockquote { margin: 8px 0 0; color: #042c63; font-size: 17px; font-style: italic; line-height: 1.65; }
.article-related { padding-top: 58px; }
.article-section-heading { margin-bottom: 24px; }
.article-section-heading span { color: #009792; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-section-heading h2 { margin: 7px 0 0; color: #042c63; font: 800 31px/1.25 "Open Sans", Arial, sans-serif; }
.article-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.article-related-grid article { overflow: hidden; border: 1px solid #dfe9ee; border-radius: 17px; background: #fff; box-shadow: 0 9px 28px rgba(4,44,99,.08); }
.article-related-grid article > img { width: 100%; height: 225px; object-fit: cover; }
.article-related-grid article > div { padding: 24px; }
.article-category { display: inline-block; margin-bottom: 11px; color: #009792; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.article-related-grid h3 { margin: 0 0 13px; color: #042c63; font-size: 21px; line-height: 1.38; }
.article-related-grid p { color: #526a7f; font-size: 14px; line-height: 1.7; }
.article-related-grid a { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; color: #008b88; font-weight: 800; }
.article-reading-sidebar { position: sticky; top: 145px; display: grid; gap: 20px; }
.article-toc, .article-author-card { padding: 25px; border: 1px solid #dfe9ee; border-radius: 17px; background: #fff; box-shadow: 0 10px 28px rgba(4,44,99,.07); }
.article-toc > span { color: #009792; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.article-toc h2 { margin: 5px 0 17px; color: #042c63; font-size: 22px; }
.article-toc nav { display: grid; }
.article-toc a { display: grid; grid-template-columns: 31px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid #e5edf1; color: #244865; font-size: 14px; font-weight: 700; line-height: 1.45; }
.article-toc b { color: #10aaa2; }
.article-author-card { text-align: center; }
.article-author-card img { width: 118px; height: 132px; border-radius: 15px; object-fit: cover; object-position: top; background: #eaf7f7; }
.article-author-card h3 { margin: 15px 0 5px; color: #042c63; font-size: 17px; }
.article-author-card p { margin: 0; color: #294e6b; font-weight: 700; }
.article-author-card small { display: block; margin: 6px 0 15px; color: #657d91; line-height: 1.5; }
.article-author-card a { color: #009792; font-weight: 800; }
.article-help-card { padding: 27px; border-radius: 17px; background: linear-gradient(145deg, #04376c, #007f83); color: #fff; box-shadow: 0 14px 34px rgba(4,44,99,.18); }
.article-help-card > i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.13); font-size: 25px; }
.article-help-card h3 { margin: 17px 0 8px; color: #fff; font-size: 21px; }
.article-help-card p { color: #d9f3f2; font-size: 14px; line-height: 1.65; }
.article-help-card > a { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; padding: 11px 13px; border-radius: 8px; background: #10aaa2; color: #fff; font-size: 13px; font-weight: 800; }
.article-help-card > a:last-child { background: rgba(255,255,255,.11); }
.blog-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

@media (max-width: 1050px) {
  .article-reading-layout { grid-template-columns: 1fr; }
  .article-reading-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .article-toc { grid-column: 1 / -1; }
}

/* Keep the redesigned navigation above the legacy article-card declarations. */
body .article-toc { padding: 0; overflow: hidden; }
body .article-toc-header h2 { margin: 0; color: #fff; font-size: clamp(21px, 2vw, 26px); }
body .article-toc nav { display: grid; gap: 0; padding: 9px 18px; }
body .article-toc nav a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 12px;
  min-height: 78px;
  padding: 13px 4px;
  border-top: 0;
  border-bottom: 1px solid #e5eef3;
}
body .article-toc nav a:last-child { border-bottom: 0; }
body .article-toc nav a b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #bce2e2;
  border-radius: 50%;
  color: #008c8d;
  background: #edfafa;
}

@media (max-width: 767px) {
  .ref-inner-hero {
    background-image:
      linear-gradient(0deg, rgba(236,247,251,.99) 0%, rgba(236,247,251,.96) 57%, rgba(236,247,251,.28) 100%),
      var(--inner-hero-image, url('../images/banner-services-ai.png'));
    background-position: 68% center;
  }
  .blog-view-redesign .ref-inner-hero { height: 300px; }
  .article-reading-shell { padding: 38px 0 55px; }
  .article-feature { border-radius: 16px; }
  .article-feature-media { height: 245px; }
  .article-feature-media figcaption { left: 17px; bottom: 15px; }
  .article-feature-body { padding: 25px 20px 28px; }
  .article-feature-body h2 { font-size: 29px; }
  .article-feature-body .article-lead { font-size: 17px; }
  .article-alert { grid-template-columns: 1fr; padding: 19px; }
  .article-check-grid, .article-related-grid, .article-reading-sidebar { grid-template-columns: 1fr; }
  .article-doctor-note { grid-template-columns: 85px 1fr; gap: 16px; padding: 18px; }
  .article-doctor-note img { width: 85px; height: 105px; }
  .article-doctor-note blockquote { font-size: 14px; }
  .article-related { padding-top: 42px; }
  .article-related-grid article > img { height: 205px; }
  .article-toc { grid-column: auto; }
  .blog-cta-actions { justify-content: stretch; width: 100%; }
  .blog-cta-actions .ref-btn { flex: 1 1 210px; }
}

/* Image-free blog detail page inspired by the supplied editorial layout. */
.blog-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 58px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 10%, rgba(26, 181, 168, .24), transparent 28%),
    linear-gradient(120deg, #032e43 0%, #005d66 58%, #003b50 100%);
}

.blog-detail-hero::before,
.blog-detail-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.blog-detail-hero::before { right: 11%; top: -130px; width: 310px; height: 310px; }
.blog-detail-hero::after { right: 4%; bottom: -165px; width: 260px; height: 260px; }
.blog-detail-hero .site-container { position: relative; z-index: 1; }
.blog-detail-kicker { color: #8ce0da; font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.blog-detail-hero h1 { margin: 8px 0 15px; color: #fff; font: 800 clamp(32px, 4vw, 46px)/1.15 "Open Sans", Arial, sans-serif; }
.blog-detail-hero nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; }
.blog-detail-hero nav a { color: #fff; }
.blog-detail-hero nav span { color: #a8dbdc; }

.blog-detail-shell { padding: 64px 0 78px; background: #fff; }
.blog-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; align-items: start; }
.blog-detail-article { min-width: 0; }
.blog-detail-heading { padding-bottom: 28px; border-bottom: 1px solid #dfe9ed; }
.blog-detail-category { display: inline-flex; padding: 7px 13px; border-radius: 999px; color: #007f7d; background: #e8f7f5; font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.blog-detail-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 17px 0 14px; color: #687b8c; font-size: 13px; }
.blog-detail-meta span { display: inline-flex; gap: 7px; align-items: center; }
.blog-detail-meta i { color: #008f89; }
.blog-detail-heading h2 { max-width: 840px; margin: 0 0 17px; color: #092f55; font: 800 clamp(30px, 3.2vw, 44px)/1.16 "Open Sans", Arial, sans-serif; letter-spacing: -.025em; }
.blog-detail-lead { max-width: 850px; margin: 0; color: #425c70; font-size: 18px; line-height: 1.75; }
.blog-detail-content { padding-top: 28px; }
.blog-detail-content > p { color: #40586b; font-size: 15px; line-height: 1.85; }
.blog-detail-content > h3 { margin: 36px 0 16px; color: #092f55; font: 800 24px/1.3 "Open Sans", Arial, sans-serif; }

.blog-detail-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 20px 0 28px; padding: 0; list-style: none; }
.blog-detail-checklist li { display: flex; gap: 11px; align-items: flex-start; padding: 14px 15px; border: 1px solid #e1ebee; border-radius: 9px; color: #23475f; background: #fbfdfd; font-size: 14px; line-height: 1.5; }
.blog-detail-checklist i { margin-top: 3px; color: #00948e; }

.blog-detail-alert { display: grid; grid-template-columns: 44px 1fr; gap: 16px; margin: 30px 0; padding: 23px 25px; border-left: 4px solid #d3643b; border-radius: 10px; background: #fff7f3; }
.blog-detail-alert > i { color: #d3643b; font-size: 30px; }
.blog-detail-alert strong { display: block; margin-bottom: 5px; color: #8d361a; font-size: 16px; }
.blog-detail-alert p { margin: 0; color: #705143; font-size: 14px; line-height: 1.65; }

.blog-detail-steps { display: grid; gap: 12px; margin: 28px 0 34px; }
.blog-detail-steps section { display: grid; grid-template-columns: 48px 1fr; gap: 17px; align-items: start; padding: 20px 22px; border: 1px solid #dfe9ed; border-radius: 11px; background: #fff; }
.blog-detail-steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #008f89, #006b7c); font-size: 12px; }
.blog-detail-steps h4 { margin: 1px 0 5px; color: #092f55; font-size: 16px; }
.blog-detail-steps p { margin: 0; color: #5a6f80; font-size: 13px; line-height: 1.65; }

.blog-detail-quote { position: relative; margin: 34px 0; padding: 28px 30px 27px 72px; border-radius: 12px; background: linear-gradient(120deg, #eaf8f6, #f8fbfc); }
.blog-detail-quote > i { position: absolute; left: 27px; top: 30px; color: #00a098; font-size: 27px; }
.blog-detail-quote p { margin: 0; color: #123c5a; font-size: 17px; font-style: italic; line-height: 1.7; }
.blog-detail-quote cite { display: block; margin-top: 11px; color: #007f7d; font-size: 13px; font-style: normal; font-weight: 800; }

.blog-detail-footer { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid #dfe9ed; }
.blog-detail-tags, .blog-detail-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.blog-detail-tags strong, .blog-detail-share strong { margin-right: 3px; color: #345267; font-size: 13px; }
.blog-detail-tags a { padding: 6px 12px; border: 1px solid #66bbb5; border-radius: 999px; color: #007e79; font-size: 12px; }
.blog-detail-share a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #70bdb8; border-radius: 50%; color: #008d87; }
.blog-detail-tags a:hover, .blog-detail-share a:hover { color: #fff; background: #008d87; }

.blog-post-navigation { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border: 1px solid #dce7eb; border-radius: 10px; }
.blog-post-navigation > a { display: flex; gap: 15px; align-items: center; min-height: 88px; padding: 17px 20px; color: #173d58; }
.blog-post-navigation > a + a { justify-content: flex-end; text-align: right; border-left: 1px solid #dce7eb; }
.blog-post-navigation i { color: #008e88; font-size: 28px; }
.blog-post-navigation small { display: block; margin-bottom: 4px; color: #008e88; font-size: 11px; }

.blog-detail-sidebar { position: sticky; top: 136px; display: grid; gap: 18px; }
.blog-sidebar-search { display: grid; grid-template-columns: 1fr 48px; overflow: hidden; border: 1px solid #d7e4e8; border-radius: 8px; background: #fff; }
.blog-sidebar-search input { min-width: 0; height: 48px; padding: 0 15px; border: 0; outline: 0; color: #173d58; background: transparent; }
.blog-sidebar-search button { border: 0; color: #fff; background: #008f89; font-size: 17px; cursor: pointer; }
.blog-sidebar-card { padding: 24px; border: 1px solid #dce7eb; border-radius: 10px; background: #fff; box-shadow: 0 7px 22px rgba(6, 52, 76, .045); }
.blog-sidebar-card h2 { position: relative; margin: 0 0 20px; padding-bottom: 11px; color: #0b334f; font-size: 20px; }
.blog-sidebar-card h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: #008f89; }
.blog-category-list { display: grid; }
.blog-category-list a { display: flex; gap: 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid #e6edef; color: #40596b; font-size: 13px; }
.blog-category-list a:last-child { border-bottom: 0; }
.blog-category-list i { color: #00a097; }
.blog-category-list a:hover { padding-left: 4px; color: #008f89; }
.blog-recent-list { display: grid; }
.blog-recent-list > a { display: grid; gap: 4px; padding: 15px 0; border-bottom: 1px solid #e6edef; }
.blog-recent-list > a:first-child { padding-top: 0; }
.blog-recent-list > a:last-child { padding-bottom: 0; border-bottom: 0; }
.blog-recent-list span { color: #00928b; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.blog-recent-list strong { color: #183e58; font-size: 13px; line-height: 1.45; }
.blog-recent-list small { color: #778896; font-size: 11px; }
.blog-recent-list small i { margin-right: 5px; color: #00928b; }

.blog-sidebar-appointment { padding: 28px; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #063c58 0%, #008a82 100%); box-shadow: 0 13px 30px rgba(3, 54, 76, .17); }
.blog-sidebar-appointment > i { font-size: 34px; }
.blog-sidebar-appointment > span { display: block; margin-top: 17px; color: #bcece7; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.blog-sidebar-appointment h2 { margin: 5px 0 8px; color: #fff; font-size: 22px; }
.blog-sidebar-appointment p { margin: 0 0 18px; color: #d9f1ef; font-size: 13px; line-height: 1.6; }
.blog-sidebar-appointment > a { display: flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 13px; border-radius: 7px; color: #064455; background: #fff; font-size: 13px; font-weight: 800; }
.blog-sidebar-appointment .blog-sidebar-phone { gap: 8px; margin-top: 9px; color: #fff; background: rgba(255,255,255,.12); white-space: nowrap; }

@media (max-width: 1050px) {
  .blog-detail-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; }
}

@media (max-width: 900px) {
  .blog-detail-layout { grid-template-columns: 1fr; }
  .blog-detail-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .blog-sidebar-search, .blog-sidebar-appointment { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .blog-detail-hero { padding: 43px 0 40px; }
  .blog-detail-shell { padding: 40px 0 55px; }
  .blog-detail-heading h2 { font-size: 29px; }
  .blog-detail-lead { font-size: 16px; }
  .blog-detail-checklist, .blog-detail-sidebar { grid-template-columns: 1fr; }
  .blog-sidebar-search, .blog-sidebar-appointment { grid-column: auto; }
  .blog-detail-alert { grid-template-columns: 1fr; padding: 20px; }
  .blog-detail-quote { padding: 24px 21px; }
  .blog-detail-quote > i { position: static; display: block; margin-bottom: 12px; }
  .blog-detail-footer { align-items: flex-start; flex-direction: column; }
  .blog-post-navigation { grid-template-columns: 1fr; }
  .blog-post-navigation > a + a { border-top: 1px solid #dce7eb; border-left: 0; }
}
