.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; }
}
