.hindi-motto {
  margin: 18px 0 0;
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
}

.language-toggle {
  padding: 8px 11px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  font: 700 13px 'DM Sans', Arial, sans-serif;
}

html[lang="hi"] body,
html[lang="hi"] .doctor-book,
html[lang="hi"] .booking-form input,
html[lang="hi"] .booking-form select,
html[lang="hi"] .booking-form textarea {
  font-family: 'Noto Sans Devanagari', 'DM Sans', Arial, sans-serif;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] .doctor-card h3,
html[lang="hi"] .doctor-callout b,
html[lang="hi"] .form-title {
  font-family: 'Noto Serif Devanagari', 'Playfair Display', Georgia, serif;
}

.form-title-main {
  display: block;
  color: var(--ink) !important;
  font: inherit !important;
  margin: 0 !important;
}

.image-break {
  background: linear-gradient(115deg, #062b5f 0%, #063a7c 58%, #0b5799 100%);
}

.hero-doctors-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
}

.hero-doctors-link span {
  color: #ff9da3;
}

#doctors,
#appointment,
#facilities,
#specialties,
#about,
#contact {
  scroll-margin-top: 90px;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.values > span {
  padding: 16px;
  background: var(--cream);
  border-left: 3px solid var(--red);
  color: var(--muted);
  font-size: 13px;
}

.values b {
  display: block;
  color: var(--blue);
  margin-bottom: 4px;
}

.facility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.facility-tags span {
  padding: 10px 13px;
  background: #eef4fb;
  border: 1px solid #d7e4f1;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(7, 42, 93, .08);
  transition: transform .3s, box-shadow .3s;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(7, 42, 93, .15);
}

.doctor-card > img {
  width: 100%;
  height: 265px;
  object-fit: contain;
  object-position: center bottom;
  background: linear-gradient(145deg, #f4f8fb, #dce9f3);
}

.doctor-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.doctor-dept {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.doctor-card h3 {
  margin: 8px 0 6px;
  color: var(--blue);
  font: 700 25px 'Playfair Display', Georgia, serif;
}

.doctor-card p {
  color: var(--muted);
  font-size: 13px;
}

.doctor-card .qualification {
  min-height: 60px;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
}

.schedule {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 15px;
  background: var(--cream);
  border-left: 3px solid var(--red);
  font-size: 12px;
}

.schedule b {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .7px;
}

.schedule strong {
  color: var(--red);
  margin-top: 3px;
}

.doctor-book {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--blue);
  cursor: pointer;
  font: 700 13px 'DM Sans', Arial, sans-serif;
}

.doctor-book span {
  color: var(--red);
  transition: transform .2s;
}

.doctor-book:hover span {
  transform: translateX(5px);
}

.doctor-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.doctor-callout b {
  display: block;
  color: var(--ink);
  font: 700 19px 'Playfair Display', Georgia, serif;
}

@media (max-width: 900px) {
  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    display: grid;
    grid-template-columns: 220px 1fr;
  }

  .doctor-card > img {
    height: 100%;
    min-height: 390px;
  }
}

@media (max-width: 600px) {
  .values {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    display: flex;
  }

  .doctor-card > img {
    height: 280px;
    min-height: 0;
  }

  .doctor-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  #doctors,
  #appointment,
  #facilities,
  #specialties,
  #about,
  #contact {
    scroll-margin-top: 72px;
  }
}

@media (max-width: 760px) {
  .language-toggle {
    width: 100%;
    margin: 7px 0;
    padding: 11px;
  }
}

/* Real hospital photography: warm, editorial framing that keeps the blue/red identity. */
.facility-intro {
  max-width: 850px;
}

.facility-intro > p {
  max-width: 590px;
  color: var(--muted);
}

.hospital-gallery {
  margin-top: 86px;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 29px;
}

.gallery-heading h3 {
  margin: 0;
  color: var(--blue);
  font: 700 clamp(27px, 3vw, 38px)/1.15 'Playfair Display', Georgia, serif;
  letter-spacing: -.7px;
}

.gallery-heading > p {
  max-width: 345px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(155px, 17vw, 218px)) clamp(270px, 27vw, 340px);
  gap: 15px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #e0e5e8;
  box-shadow: 0 12px 30px rgba(7, 42, 93, .07);
  overflow: hidden;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.3,1), box-shadow .3s ease;
}

.gallery-item.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.gallery-item.reveal.visible {
  opacity: 1;
  transform: none;
}

.gallery-item:hover {
  box-shadow: 0 18px 38px rgba(7, 42, 93, .14);
}

.gallery-ward { grid-column: span 5; grid-row: span 2; }
.gallery-theatre { grid-column: span 7; grid-row: span 2; }
.gallery-room,
.gallery-opd,
.gallery-hall { grid-column: span 4; }

.gallery-photo {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #e8edf0;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.gallery-item:hover .gallery-photo img {
  transform: scale(1.035);
}

.gallery-ward .gallery-photo img {
  object-position: center 55%;
}

.gallery-item figcaption {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 11px 16px;
}

.gallery-index {
  align-self: flex-start;
  padding-top: 2px;
  color: var(--red);
  font: 700 11px/1.2 'DM Sans', sans-serif;
  letter-spacing: .08em;
}

.gallery-item figcaption > span:last-child {
  min-width: 0;
}

.gallery-item figcaption strong,
.gallery-item figcaption small {
  display: block;
  overflow-wrap: anywhere;
}

.gallery-item figcaption strong {
  color: var(--blue);
  font-size: 14px;
  line-height: 1.35;
}

.gallery-item figcaption small {
  margin-top: 3px;
  color: #718091;
  font-size: 11px;
  line-height: 1.35;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .nav { height: 72px; }
  .brand img { width: 160px; }
  .menu-toggle { display: block; }
  .nav nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 12px 20px #001b3d1a;
    padding: 15px 32px;
    align-items: stretch;
    gap: 0;
  }
  .nav nav.open { display: flex; flex-direction: column; }
  .nav nav a { padding: 12px 0; }
  .nav .nav-cta { text-align: center; margin-top: 8px; }
  .language-toggle { width: 100%; margin: 7px 0; padding: 11px; }
}

html[lang="hi"] .gallery-heading h3 {
  font-family: 'Noto Serif Devanagari', 'Playfair Display', Georgia, serif;
}

html[lang="hi"] .gallery-item figcaption strong,
html[lang="hi"] .gallery-item figcaption small {
  font-family: 'Noto Sans Devanagari', 'DM Sans', sans-serif;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-rows: repeat(2, clamp(145px, 24vw, 200px)) 270px;
    gap: 12px;
  }

  .gallery-item figcaption {
    padding: 10px 12px;
    gap: 9px;
  }
}

@media (max-width: 600px) {
  .hospital-gallery {
    margin-top: 60px;
  }

  .gallery-heading {
    display: block;
    margin-bottom: 22px;
  }

  .gallery-heading > p {
    margin-top: 12px;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 16px;
  }

  .gallery-ward,
  .gallery-room,
  .gallery-theatre,
  .gallery-opd,
  .gallery-hall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-photo {
    flex: none;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery-ward .gallery-photo {
    aspect-ratio: 4 / 3;
  }

  .gallery-item figcaption {
    min-height: 70px;
    padding: 12px 14px;
  }
}