/* Final responsive and image-crop adjustments requested from the client brief. */
.container {
  padding-inline: clamp(18px, 3vw, 30px);
}

/* The hero carousel remains unchanged; its photos now sit directly on the navy
   background instead of inside a second white frame. */
.hero__photo-frame {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero__photo-frame--carousel,
.hero-carousel,
.hero-carousel__viewport {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hero__photo-frame img {
  border-radius: clamp(18px, 2.4vw, 30px);
}

/* Keep the language control inside navigation instead of floating over photos. */
.language-switcher {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  transform: none;
  z-index: 30;
}
.language-switcher__toggle {
  width: 42px;
  min-height: 42px;
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(12, 50, 133, .12);
}
.language-switcher__menu {
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  left: auto;
  transform: none;
}

.topbar__social { gap: 7px; }
.topbar__social .social-brand-icon { width: 22px; height: 22px; }
.topbar__social .social-brand-icon svg { width: 20px; height: 20px; }
.topbar__item.topbar__emergency {
  color: #ffd1cd;
  font-weight: 700;
  white-space: nowrap;
}
.topbar__item.topbar__emergency .icon { color: #ff8b82; }
.topbar__item.topbar__emergency:hover { color: #fff; }

.hospital-profile-video {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 4px 0 24px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: linear-gradient(110deg, #102b62, #176aa2);
  box-shadow: 0 14px 32px rgba(7, 28, 71, .18);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hospital-profile-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(7, 28, 71, .24);
}
.hospital-profile-video:focus-visible {
  outline: 3px solid #7ddbb2;
  outline-offset: 3px;
}
.hospital-profile-video__play {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.hospital-profile-video__play svg { width: 20px; height: 20px; margin-left: 3px; }
.hospital-profile-video__copy { display: grid; gap: 4px; }
.hospital-profile-video__copy strong { color: #fff; font-size: 15px; }
.hospital-profile-video__copy small { color: rgba(255, 255, 255, .78); font-size: 12.5px; }
.hospital-profile-video__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* Soft, readable cards blend with the section backgrounds rather than looking
   like opaque white boxes. */
.scope-section .scope-card,
.specialty-card {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(12, 50, 133, .11);
  backdrop-filter: blur(8px);
}
.scope-section .scope-card:hover,
.specialty-card:hover {
  background: rgba(255, 255, 255, .95);
}

/* Use the same portrait treatment wherever the two founders are shown. */
.doctor-card__img--portrait,
.doctor-profile-card__portrait,
.leadership-card__portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eef3f9;
}
.leadership-card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  padding: clamp(16px, 2.4vw, 28px);
}
.doctor-card__img--portrait img,
.doctor-profile-card__portrait img,
.leadership-card__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.leadership-card__portrait {
  width: 100%;
  border-radius: var(--r-md);
}

/* Consistent gallery cards and readable captions on all screen sizes. */
.gallery-grid figure {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  background: var(--white);
}
.gallery-grid .gallery-open {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #edf4fb;
}
.gallery-grid .gallery-open img,
.gallery-grid figure > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
.gallery-grid figure > img {
  flex: 0 0 auto;
  height: auto;
  aspect-ratio: 4 / 3;
}
.gallery-grid figcaption {
  position: static;
  padding: 12px 15px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.careers-contact-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fff 0%, #f3f7fc 100%);
}
.about-values-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .container { padding-inline: 22px; }
  .topbar__social { gap: 5px; }
}

@media (max-width: 1440px) and (min-width: 1201px) {
  .mainnav__inner { gap: 8px; }
  .brand-lockup { gap: 5px; }
  .brand__logo { width: 46px; height: 46px; }
  .brand__text strong { font-size: 16px; }
  .brand__text small { font-size: 8px; }
  .brand-certifications { gap: 3px; }
  .brand-certification { width: 40px; height: 36px; padding: 2px; }
  .desktop-nav { flex: 1 1 auto; min-width: 0; }
  .desktop-nav__list { gap: 0; }
  .desktop-nav__link { padding-inline: 5px; font-size: 12px; white-space: nowrap; }
  .mainnav__actions { gap: 6px; }
  .mainnav__actions .btn--sm { padding: 9px 10px; font-size: 12px; }
  .call-chip { width: 38px; height: 38px; }
}

@media (max-width: 640px) {
  .doctor-profile-card { grid-template-columns: minmax(0, 1fr); }
  .doctor-profile-card__portrait {
    aspect-ratio: 4 / 3;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid #e3ebf5;
  }
  .topbar__item.topbar__emergency { font-size: 9.5px; }
  .topbar__item.topbar__emergency .icon { width: 13px; height: 13px; }
  .hospital-profile-video { align-items: flex-start; flex-wrap: wrap; gap: 11px; padding: 15px; }
  .hospital-profile-video__action { width: 100%; margin-left: 59px; }
  .container { padding-inline: 18px; }
  .language-switcher { margin: 0; }
  .language-switcher__toggle { width: 40px; min-height: 40px; }
  .language-switcher__toggle svg { width: 19px; height: 19px; }
  .language-switcher__menu { top: calc(100% + 8px); right: 0; left: auto; }
  .topbar__social .social-brand-icon { width: 18px; height: 18px; }
  .topbar__social .social-brand-icon svg { width: 17px; height: 17px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery-grid figcaption { padding: 9px 10px; font-size: 12px; }
  .leadership-card__portrait { max-width: 220px; }
  .leadership-card { grid-template-columns: minmax(0, 1fr); }
  .call-chip { display: none; }
  .float-whatsapp { display: none; }
}

@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .brand-certifications { display: none; }
}

.facilities-section,
.facilities-section[id] { scroll-margin-top: calc(var(--header-h, 80px) + 22px); }
