.site-header,
main,
.site-footer {
  max-width: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body { overflow-x: clip; }
}

.navbar-brand {
  flex: 0 1 auto;
  max-width: min(450px, 40vw);
}

.navbar-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-logo {
  display: inline-block;
  max-width: 310px;
  padding: 7px 10px;
  background: #fff;
  border-radius: 10px;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer .footer-credit {
  display: inline;
  padding: 0;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-credit:hover {
  color: #ffb07d;
}

.package-card .price {
  min-height: 44px;
}

.package-card .price strong {
  font-size: 1.65rem;
}

.blog-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-photo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin-left: 0 !important;
  object-fit: cover;
  object-position: center top;
}

.doctor-card > div:last-child {
  display: flex;
  flex-direction: column;
  min-height: 245px;
}

.doctor-card > div:last-child > a {
  margin-top: auto;
  padding-top: 14px;
}

.doctor-designation {
  color: #0c48b5;
  font-weight: 800;
  font-size: 1.05rem;
}

.facility-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  height: 500px;
  padding: 12px;
  background: #e7f1fb;
}

.facility-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 15px;
}

.facility-building {
  grid-column: 1;
  grid-row: 1;
}

.facility-critical {
  grid-column: 2;
  grid-row: 1;
}

.facility-ct {
  grid-column: 1;
  grid-row: 2;
}

.facility-ward {
  grid-column: 2;
  grid-row: 2;
}

.footer-branch {
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.footer-branch strong {
  display: block;
  color: #fff;
  font-size: .78rem;
  line-height: 1.4;
}

.footer-branch p {
  margin: 5px 0 2px;
  font-size: .72rem;
  line-height: 1.5;
}

.footer-branch a {
  color: #9fd0ff;
  font-weight: 800;
}

.branch-panel {
  height: 100%;
  padding: 34px;
  border: 1px solid #e3e9f3;
  border-radius: 20px;
  background: #f7faff;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.branch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 285px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #dbe5f4;
  border-radius: 16px;
  background: #fff;
}

.branch-card > i {
  color: #1768d1;
  font-size: 30px;
  margin-bottom: 18px;
}

.branch-card h3 {
  padding-right: 36px;
  line-height: 1.35;
}

.branch-card p {
  font-size: .84rem;
}

.branch-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.branch-number {
  position: absolute;
  top: 15px;
  right: 18px;
  color: #d6e5f8;
  font: 800 2rem/1 "Manrope", sans-serif;
}

@media (max-width: 1199px) {
  .navbar-brand { max-width: 390px; }
}

@media (max-width: 767px) {
  .navbar-brand { max-width: min(275px, calc(100vw - 88px)); }
  .doctor-photo { height: 290px; }
  .facility-gallery { height: 360px; gap: 7px; padding: 7px; }
  .branch-panel { padding: 22px; }
  .branch-grid { grid-template-columns: 1fr; }
}

/* Omega Anu Neuro & Cardiac Sciences visual system */
:root {
  --navy: #082657;
  --blue: #07549b;
  --blue-2: #0875ba;
  --orange: #ff6a00;
  --green: #0997a7;
  --red: #ee2b32;
  --soft: #f5faff;
}

.logo-crop {
  position: relative;
  display: block;
  width: 215px;
  height: 76px;
  overflow: hidden;
  flex: 0 0 215px;
}

.logo-crop img {
  position: absolute;
  width: 215px !important;
  height: auto !important;
  max-width: none;
  left: 0;
  top: -38px;
}

.footer-logo.logo-crop {
  width: 210px;
  height: 92px;
  background: #fff;
}

.footer-logo.logo-crop img { width: 210px !important; top: -31px; }
.emergency-strip { padding: 0; background: linear-gradient(90deg,#119ba8 0 55%,#0876af 55% 78%,#ee2b32 78%); }
.emergency-strip .container { min-height: 32px; }
.top-links { display: flex; align-items: stretch; gap: 22px; }
.top-links a { display: flex; align-items: center; padding: 6px 12px; }
.top-links .top-emergency { background: var(--red); }
.btn-emergency { color: #fff; background: var(--red); border-color: var(--red); }
.btn-emergency:hover { color: #fff; background: #cf151d; border-color: #cf151d; }
.hero-slide { height: min(655px, 72vh); }
.hero-slide > img { object-position: center; }
.hero-overlay { background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 35%,rgba(255,255,255,.45) 59%,rgba(235,247,255,.05) 100%); }
.hero-content { max-width: 1380px; }
.hero-content h1 { max-width: 720px; font-size: clamp(2.8rem,4.8vw,4.9rem); }
.hero-content h1::first-line { color: var(--navy); }
.quick-actions-wrap { position: relative; z-index: 8; margin-top: -30px; }
.quick-actions { display: grid; grid-template-columns: repeat(4,1fr); background: #fff; border: 1px solid #e0e8f2; border-radius: 20px; padding: 12px; box-shadow: 0 15px 35px rgba(7,55,105,.12); }
.quick-actions a { display: flex; align-items: center; gap: 14px; min-height: 82px; padding: 14px 20px; color: var(--navy); border-right: 1px solid #e3e9f3; }
.quick-actions a:last-child { border-right: 0; }
.quick-actions i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #e9f4ff; color: var(--blue); font-size: 21px; }
.quick-actions .qa-emergency i { color: var(--red); background: #fff0f0; }
.quick-actions span,.quick-actions b,.quick-actions small { display: block; }
.quick-actions b { font: 800 .9rem/1.25 Manrope,sans-serif; }
.quick-actions small { color: var(--muted); font-size: .72rem; margin-top: 4px; }
.stats-wrap { margin-top: 26px; }
.stats-card { grid-template-columns: repeat(4,1fr); }
.specialty-grid { grid-template-columns: repeat(4,1fr); }
.facility-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.facility-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 7px 22px rgba(7,55,105,.08); }
.facility-card > img { width: 100%; height: 220px; object-fit: cover; }
.facility-card > div { position: relative; padding: 22px; }
.facility-card > div > i { position: absolute; right: 20px; top: -25px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; border: 5px solid #fff; }
.facility-card h2 { font-size: 1.1rem; }
.facility-card p { margin: 0; font-size: .84rem; }
.home-page main { display: flex; flex-direction: column; }
.home-page main > .hero { order: 1; }
.home-page main > .quick-actions-wrap { order: 2; }
.home-page main > .stats-wrap { order: 3; }
.home-page main > .about-home { order: 4; }
.home-page main > .specialties-home { order: 5; }
.home-page main > .doctors-home { order: 6; }
.home-page main > .why-home { order: 7; }
.home-page main > .journey-home { order: 8; }
.home-page main > #packages { order: 9; }
.home-page main > .testimonials { order: 10; }
.home-page main > .blog-home { order: 11; }
.home-page main > .insurance-home { order: 12; }
.home-page main > .faq-home { order: 13; }
.care-journey { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.care-journey li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 180px; padding: 24px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.care-journey li > span { position: absolute; top: 10px; left: 12px; color: #b5c8e2; font-weight: 800; }
.care-journey i { color: var(--blue); font-size: 26px; margin: 10px 0 16px; }
.care-journey b { font: 800 .82rem Manrope,sans-serif; }
.care-journey small { color: var(--muted); font-size: .7rem; margin-top: 7px; }
.insurance-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.insurance-grid article { min-height: 88px; display: grid; place-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--blue); text-align: center; }
.insurance-grid img { max-width: 150px; max-height: 52px; object-fit: contain; }

@media (max-width: 1199px) {
  .logo-crop { width: 190px; height: 70px; flex-basis: 190px; }
  .logo-crop img { width: 190px !important; top: -32px; }
}

@media (max-width: 991px) {
  .quick-actions { grid-template-columns: repeat(2,1fr); }
  .quick-actions a:nth-child(2) { border-right: 0; }
  .quick-actions a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facility-card-grid { grid-template-columns: repeat(2,1fr); }
  .care-journey { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 767px) {
  .logo-crop { width: 165px; height: 66px; flex-basis: 165px; }
  .logo-crop img { width: 165px !important; top: -26px; }
  .top-links > a:first-child { display: none; }
  .emergency-strip { background: linear-gradient(90deg,#0a99a9,#ee2b32); }
  .hero-slide { min-height: 590px; height: 76vh; }
  .hero-slide > img { object-position: 58% center; }
  .hero-overlay { background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.96) 55%,rgba(255,255,255,.45) 100%); }
  .hero-content { justify-content: flex-end; padding: 38px 24px 76px; }
  .hero-content h1 { max-width: 86%; font-size: clamp(2rem,9vw,3rem); }
  .hero-content > p { max-width: 82%; font-size: .92rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { display: none; }
  .quick-actions-wrap { margin-top: -30px; }
  .quick-actions { grid-template-columns: 1fr; border-radius: 18px; }
  .quick-actions a,.quick-actions a:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-actions a:last-child { border-bottom: 0; }
  .stats-card { grid-template-columns: repeat(2,1fr); }
  .stats-card > div:last-child { grid-column: auto; }
  .specialty-grid { grid-template-columns: repeat(2,1fr); }
  .facility-card-grid { grid-template-columns: 1fr; }
  .care-journey { grid-template-columns: repeat(2,1fr); }
  .insurance-grid { grid-template-columns: repeat(2,1fr); }
  .floating-actions { display: none; }
}
