/* Jeevodaya Hospital — Top bar and main navigation */

html {
  scroll-padding-top: 136px;
}

.jh-site-header {
  --jh-navy: #081d46;
  --jh-red: #c8102e;
  --jh-border: #e4ebf3;

  background: #fff;
  box-shadow: 0 4px 18px rgb(8 29 70 / 8%);
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-topbar {
  background: linear-gradient(105deg, #081d46, #103465);
  color: #fff;
  font-size: 1.0rem;
}

.jh-topbar-inner,
.jh-topbar-links {
  display: flex;
  align-items: center;
}

.jh-topbar-inner {
  min-height: 42px;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 16px;
}

.jh-topbar-location {
  padding-block: 5px;
}

.jh-topbar-links {
  flex-wrap: wrap;
  column-gap: clamp(10px, 2vw, 24px);
}

.jh-topbar a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.jh-topbar a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.jh-topbar .jh-topbar-emergency {
  color: #ffc3cc;
}


.jh-topbar a.jh-topbar-whatsapp {
  padding-inline: 8px;
  border-radius: 6px;
  text-decoration: none;
}

.jh-topbar a.jh-topbar-whatsapp:is(:hover, :focus-visible) {
  background-color: rgb(74 222 128 / 16%);
  color: #fff;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .jh-topbar a.jh-topbar-whatsapp {
    transition: background-color 180ms ease, color 180ms ease;
  }

  .jh-topbar-whatsapp .jh-whatsapp-icon {
    transition: transform 180ms ease;
  }

  .jh-topbar-whatsapp:is(:hover, :focus-visible) .jh-whatsapp-icon {
    transform: translateY(-2px) scale(1.1);
  }
}

.jh-navbar {
  padding:0px;
  --bs-navbar-color: var(--jh-navy);
  --bs-navbar-hover-color: var(--jh-navy);
  --bs-navbar-active-color: var(--jh-navy);

  min-height: 72px;
  border-bottom: 1px solid var(--jh-border);
}

.jh-navbar .navbar-brand {
  margin-right: 12px;
}

.jh-navbar .navbar-brand img {
  display: block;
  width: clamp(175px, 24vw, 345px);
  max-width: 100%;
  height: auto;
}

.jh-navbar .navbar-nav {
  gap: clamp(4px, 1.25vw, 20px);
}

.jh-navbar .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

.jh-navbar .nav-link::after {
  position: absolute;
  inset-inline: var(--bs-navbar-nav-link-padding-x);
  bottom: 2px;
  height: 2px;
  background: var(--jh-red);
  transform: scaleX(0);
  transform-origin: left;
  content: "";
}

.jh-navbar .nav-link:is(.active, :hover, :focus-visible)::after {
  transform: scaleX(1);
}

.jh-navbar .navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  border-color: #cbd8e8;
  border-radius: 8px;
}

.jh-site-header :is(a, button):focus-visible {
  outline: 2px solid #1b5aa6;
  outline-offset: 3px;
}

.jh-topbar a:focus-visible {
  outline-color: #fff;
  outline-offset: -2px;
}

@media (prefers-reduced-motion: no-preference) {
  .jh-navbar .nav-link::after {
    transition: transform 180ms ease;
  }
}

@media (max-width: 991.98px) {
  .jh-navbar .navbar-nav {
    gap: 0;
    max-height: 55dvh;
    overflow-y: auto;
    margin-top: 8px;
    padding: 6px 4px;
    border-top: 1px solid var(--jh-border);
  }

  .jh-navbar .nav-link::after {
    inset-inline: 0 auto;
    width: 30px;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 158px;
  }

  .jh-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .jh-topbar a {
    min-height: 36px;
  }
}

/* Jeevodaya Hospital — Panoramic corridor hero */

.jh-corridor-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #081d46;
  color: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-corridor-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.jh-corridor-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(8 29 70 / 96%) 0%,
    rgb(8 29 70 / 86%) 20%,
    rgb(8 29 70 / 44%) 37%,
    transparent 60%
  );
  content: "";
}

.jh-corridor-inner {
  display: flex;
  align-items: center;
  min-height: clamp(260px, 20vw, 340px);
  padding-block: 30px 36px;
}

.jh-corridor-copy {
  padding-inline-start: clamp(4px, 2.5vw, 36px);
}

.jh-corridor-copy h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(2.4rem, 3.7vw, 3.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.jh-corridor-copy h1 span {
  display: block;
}

.jh-corridor-copy p {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  line-height: 1.3;
}

.jh-corridor-directions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: #081d46;
  font-weight: 700;
}

.jh-corridor-directions:hover {
  background: #eaf3ff;
  color: #081d46;
}

.jh-corridor-directions:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.jh-corridor-directions span {
  color: #c8102e;
}

.jh-corridor-caption {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgb(8 29 70 / 90%);
  color: #fff;
  font-size: 0.7rem;
}

@media (max-width: 767.98px) {
  .jh-corridor-inner {
    min-height: 255px;
  }

  .jh-corridor-image {
    object-position: 58% center;
  }

  .jh-corridor-hero::before {
    background: linear-gradient(
      90deg,
      rgb(8 29 70 / 94%) 0%,
      rgb(8 29 70 / 82%) 48%,
      rgb(8 29 70 / 42%) 100%
    );
  }
}

@media (prefers-reduced-motion: no-preference) {
  .jh-corridor-copy {
    animation: jh-corridor-enter 600ms ease-out both;
  }

  @keyframes jh-corridor-enter {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}



.jh-topbar .jh-topbar-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a7f3c8;
  white-space: nowrap;
}

.jh-whatsapp-icon {
  flex-shrink: 0;
  color: #4ade80;
}


/* Jeevodaya Hospital — Department finder */
.jh-department-finder {
  padding-block: clamp(24px, 3vw, 40px);
  background: #fff;
  color: #081d46;
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-finder-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}

.jh-finder-heading h2 {
  margin: 0 0 5px;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.jh-finder-heading p {
  margin: 0;
  color: #435370;
  line-height: 1.5;
}

.jh-finder-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #124b9b;
  font-weight: 700;
  text-decoration: none;
}

.jh-finder-all:hover {
  color: #081d46;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.jh-finder-tile {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  height: 100%;
  min-height: 96px;
  padding: 14px clamp(14px, 2.6vw, 36px);
  border-radius: 12px;
  color: var(--tile-text);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.jh-finder-emergency {
  --tile-text: #fff;
  background: linear-gradient(110deg, #cd1028, #ad001b);
}

.jh-finder-critical {
  --tile-text: #fff;
  background: linear-gradient(110deg, #0c386d, #081d46);
}

.jh-finder-dialysis {
  --tile-text: #081d46;
  background: linear-gradient(110deg, #d2f1ff, #a8d8ef);
}

.jh-finder-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  align-self: center;
  padding-inline-end: clamp(12px, 2vw, 24px);
  border-inline-end: 1px solid currentColor;
}

.jh-finder-icon svg {
  display: block;
  width: clamp(34px, 4vw, 54px);
  height: auto;
}

.jh-finder-tile:hover {
  box-shadow: 0 8px 20px rgb(8 29 70 / 18%);
  color: var(--tile-text);
}

.jh-department-finder a:focus-visible {
  outline: 3px solid #1b5aa6;
  outline-offset: 3px;
}

/* Keep the tiles visible if AOS hasn't loaded. */
.jh-department-finder [data-aos]:not(.aos-init) {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .jh-finder-tile {
    transition: transform 200ms ease, box-shadow 200ms ease;
  }

  .jh-finder-icon svg {
    transition: transform 200ms ease;
  }

  @media (hover: hover) {
    .jh-finder-tile:hover {
      transform: translateY(-4px);
    }

    .jh-finder-tile:hover svg {
      transform: translateX(3px);
    }
  }
}

@media (max-width: 767.98px) {
  .jh-finder-tile {
    min-height: 72px;
  }
}


/* Jeevodaya Hospital — About */
.jh-about-hospital {
  --about-navy: #081d46;
  --about-red: #c8102e;

  padding-block: clamp(36px, 6vw, 80px);
  background: linear-gradient(120deg, #eaf5fc, #f8fbff 68%);
  color: var(--about-navy);
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-about-hospital h2 {
  margin: 0 0 12px;
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--about-red);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.jh-about-hospital p {
  max-width: 56ch;
  margin: 0 0 12px;
  color: #435370;
  line-height: 1.65;
}

.jh-about-hospital .jh-about-hospital-lead {
  color: var(--about-navy);
  font-size: 1.14rem;
  font-weight: 700;
}

.jh-about-hospital-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 4px solid #fff;
  border-radius: 16px 48px 16px 16px;
  background: #d8eaf7;
  box-shadow: 0 12px 28px rgb(8 29 70 / 12%);
}

.jh-about-hospital-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.jh-about-hospital-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--about-navy);
  color: #fff;
  font-size: 0.75rem;
}

.jh-about-hospital-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.jh-about-hospital-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 7px;
  font-weight: 700;
}

.jh-about-hospital-actions .jh-about-primary {
  background: var(--about-navy);
  color: #fff;
}

.jh-about-hospital-actions .jh-about-primary:hover {
  background: #174580;
  color: #fff;
}

.jh-about-hospital-actions .jh-about-secondary {
  border: 1px solid #a7bfd9;
  background: #fff;
  color: var(--about-navy);
}

.jh-about-hospital-actions .jh-about-secondary:hover {
  background: #e2f0fd;
  color: var(--about-navy);
}

.jh-about-hospital-actions .btn:focus-visible {
  outline: 3px solid #1b5aa6;
  outline-offset: 3px;
}

.jh-about-hospital [data-aos]:not(.aos-init) {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 991.98px) {
  .jh-about-hospital-photo img {
    aspect-ratio: 16 / 10;
  }
}


/* Jeevodaya Hospital — Departments and units */
.jh-care-directory {
  --care-navy: #081d46;
  --care-blue: #124b9b;
  --care-red: #b8102b;
  --care-border: #cbd8e8;

  padding-block: clamp(30px, 5vw, 64px);
  background: #fff;
  color: var(--care-navy);
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-care-directory h2 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.jh-care-card {
  overflow: hidden;
  min-height: 116px;
  border: 1px solid var(--care-border);
  border-radius: 9px;
  background: #fff;
}

.jh-care-card > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  min-height: 114px;
  list-style: none;
  cursor: pointer;
}

.jh-care-card > summary::-webkit-details-marker {
  display: none;
}

.jh-care-card > summary::after {
  position: absolute;
  right: 13px;
  bottom: 8px;
  color: var(--care-blue);
  font-size: 1.22rem;
  line-height: 1;
  content: "→";
}

.jh-care-card[open] > summary::after {
  content: "−";
}

.jh-care-card > summary img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 114px;
  object-fit: cover;
  background: #eaf3fc;
}

.jh-care-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 13px 14px 27px;
  color: #435370;
  font-size: 0.875rem;
  line-height: 1.36;
}

.jh-care-copy strong,
.jh-care-copy h3 {
  margin: 0;
  color: var(--care-navy);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.jh-care-card > p {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--care-border);
  background: #f5f9ff;
  color: #435370;
  font-size: 0.875rem;
  line-height: 1.55;
}

.jh-care-card-compact > summary {
  grid-template-columns: minmax(0, 1fr);
}

.jh-care-card-emergency {
  border-inline-start: 4px solid var(--care-red);
  background: #fff4f6;
}

.jh-care-card-emergency .jh-care-copy {
  padding-bottom: 13px;
}

.jh-care-card-emergency p {
  margin: 0;
}

.jh-care-card-emergency a {
  color: var(--care-red);
  font-weight: 700;
  text-underline-offset: 3px;
}

.jh-care-card:target {
  outline: 2px solid var(--care-blue);
  outline-offset: 3px;
}

.jh-care-card :is(summary, a):focus-visible {
  outline: 3px solid var(--care-blue);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: no-preference) {
  .jh-care-card {
    transition: transform 200ms ease, box-shadow 200ms ease;
  }

  .jh-care-card > summary::after {
    transition: transform 200ms ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .jh-care-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgb(8 29 70 / 12%);
    }

    .jh-care-card:not([open]) > summary:hover::after {
      transform: translateX(3px);
    }
  }
}

.jh-care-card-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--care-border, #cbd8e8);
  border-radius: 9px;
  background: #c1e2ff;
}

.jh-care-card-shell > .jh-care-card {
  border: 0;
  border-radius: 8px 8px 0 0;
}

.jh-care-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding: 8px 12px;
  border-top: 1px solid #e4edf7;
}

.jh-care-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #edf5ff;
  color: #124b9b;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.jh-care-more:hover {
  background: #124b9b;
  color: #fff;
}

.jh-care-more:focus-visible {
  outline: 2px solid #124b9b;
  outline-offset: 3px;
}


.jh-care-emergency-shell {
  border-inline-start: 4px solid #b8102b;
}

.jh-care-emergency-shell > .jh-care-card {
  flex: 1;
}

.jh-care-emergency-shell:target {
  outline: 2px solid #aa0808;
  outline-offset: 3px;
}

.jh-care-emergency-shell .jh-care-card-footer {
  background: #fce2e8;
  border-top-color: #f0b6c2;
}

.jh-care-emergency-shell .jh-care-more {
  background: #b8102b;
  color: #fff;
}

.jh-care-emergency-shell .jh-care-more:hover {
  background: #941024;
  color: #fff;
}

.jh-care-emergency-shell .jh-care-more:focus-visible {
  outline-color: #941024;
}

/* Jeevodaya Hospital — Plan Your Visit */
.jh-patient-visit {
  --visit-navy: #081d46;
  --visit-blue: #124b9b;
  --visit-border: #d6e4f2;

  padding-block: clamp(36px, 5vw, 72px);
  background: #eff6fd;
  color: var(--visit-navy);
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-patient-visit-heading {
  max-width: 62ch;
  margin-bottom: 22px;
}

.jh-patient-visit-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.jh-patient-visit-heading p,
.jh-patient-visit-card p,
.jh-patient-visit-card ul,
.jh-patient-visit-card address {
  margin: 0;
  color: #435370;
  line-height: 1.6;
}

.jh-patient-visit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--visit-border);
  border-radius: 12px;
  background: #fff;
}

.jh-patient-visit-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.jh-patient-visit-card ul {
  padding-inline-start: 20px;
}

.jh-patient-visit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 13px;
  border-radius: 7px;
  background: #eaf3ff;
  color: var(--visit-blue);
  font-weight: 700;
  text-decoration: none;
}

.jh-patient-visit-link:hover {
  background: var(--visit-blue);
  color: #fff;
}

.jh-patient-visit-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.jh-patient-visit-location {
  background: var(--visit-navy);
  color: #fff;
}

.jh-patient-visit-location address {
  color: #dceafa;
}

.jh-patient-visit-location .jh-patient-visit-link:hover {
  background: #c7ddf7;
  color: var(--visit-navy);
}

.jh-patient-visit-location .jh-patient-visit-link:focus-visible {
  outline-color: #fff;
}

.jh-patient-visit [data-aos]:not(.aos-init) {
  opacity: 1 !important;
  transform: none !important;
}

/* Jeevodaya Hospital — Shared section titles */
h2.jh-section-title {
  margin: 0 0 16px;
  color: #081d46;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.jh-section-title > span {
  color: #124b9b;
}

.jh-section-title::after {
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: #b8102b;
  content: "";
}

.jh-care-directory h2.jh-section-title {
  margin-bottom: 22px;
}

.jh-patient-visit-heading h2.jh-section-title {
  margin-bottom: 12px;
}


/* Plan Your Visit — Card redesign */
.jh-patient-visit .jh-patient-visit-card {
  gap: 14px;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgb(8 29 70 / 6%);
}

/* Consultation — WhatsApp green */
.jh-patient-visit .row > div:nth-child(1) .jh-patient-visit-card {
  border-color: #cce6d8;
  background: linear-gradient(145deg, #eaf7ef, #fff 80%);
}

.jh-patient-visit .row > div:nth-child(1) .jh-patient-visit-link {
  background: #17603d;
  color: #fff;
}

.jh-patient-visit .row > div:nth-child(1) .jh-patient-visit-link:hover {
  background: #10472c;
}

/* What to Bring — Checklist */
.jh-patient-visit .jh-patient-visit-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.jh-patient-visit-card li {
  position: relative;
  padding: 7px 10px 7px 34px;
  border-radius: 7px;
  background: #f2f7fd;
}

.jh-patient-visit-card li::before {
  position: absolute;
  inset-inline-start: 12px;
  color: #124b9b;
  font-weight: 700;
  content: "✓";
}

/* Location — Navy gradient */
.jh-patient-visit .jh-patient-visit-location {
  border-color: #173967;
  background: linear-gradient(135deg, #081d46, #174781);
}

.jh-patient-visit .jh-patient-visit-location .jh-patient-visit-link {
  background: #fff;
  color: #081d46;
}

.jh-patient-visit .jh-patient-visit-location .jh-patient-visit-link:hover {
  background: #dcecff;
}

@media (prefers-reduced-motion: no-preference) {
  .jh-patient-visit-card {
    transition: transform 200ms ease, box-shadow 200ms ease;
  }

  @media (hover: hover) {
    .jh-patient-visit .jh-patient-visit-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 24px rgb(8 29 70 / 12%);
    }
  }
}


/* Jeevodaya Hospital — Patient FAQs */
.jh-patient-faq {
  --faq-navy: #081d46;
  --faq-blue: #124b9b;
  --faq-border: #d6e4f2;

  padding-block: clamp(36px, 5vw, 72px);
  background: #fff;
  color: var(--faq-navy);
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-patient-faq p {
  margin: 0;
  color: #435370;
  line-height: 1.65;
}

.jh-faq-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #eaf7ef;
  color: #17603d;
  font-weight: 700;
  text-decoration: none;
}

.jh-faq-whatsapp:hover {
  background: #17603d;
  color: #fff;
}

.jh-patient-faq .jh-faq-list {
  display: grid;
  gap: 10px;
}

.jh-patient-faq .jh-faq-item {
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  background: #f5f9fd;
}

.jh-patient-faq .jh-faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 11px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.jh-patient-faq .jh-faq-item > summary::-webkit-details-marker {
  display: none;
}

.jh-patient-faq .jh-faq-item > summary::after {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    #e4effc;
  color: var(--faq-blue);
  content: "";
}

.jh-patient-faq .jh-faq-item[open] {
  border-color: #a9c4e2;
  background: #fff;
}

.jh-patient-faq .jh-faq-item[open] > summary::after {
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    var(--faq-blue);
}

.jh-patient-faq .jh-faq-item > summary:hover {
  background: #eaf3fd;
}

.jh-patient-faq .jh-faq-item p {
  padding: 0 16px 15px;
}

.jh-patient-faq .jh-faq-item a {
  color: var(--faq-blue);
  font-weight: 700;
  text-underline-offset: 3px;
}

.jh-patient-faq :is(a, summary):focus-visible {
  outline: 2px solid var(--faq-blue);
  outline-offset: 3px;
}

.jh-patient-faq [data-aos]:not(.aos-init) {
  opacity: 1 !important;
  transform: none !important;
}


/* Jeevodaya Hospital — Contact and location */
.jh-location {
  padding-block: clamp(36px, 5vw, 72px);
  background: #eff6fd;
  color: #081d46;
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-location-heading {
  margin-bottom: 22px;
}

.jh-location-heading p {
  margin: 0;
  color: #435370;
  line-height: 1.6;
}

.jh-location-panel {
  overflow: hidden;
  border: 1px solid #d6e4f2;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(8 29 70 / 8%);
}

.jh-location-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding: clamp(22px, 4vw, 46px);
  background: linear-gradient(135deg, #081d46, #174781);
  color: #fff;
}

.jh-location-info h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
}

.jh-location-info address {
  margin: 0;
  color: #dceafa;
  font-style: normal;
  line-height: 1.65;
}

.jh-location-whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #a7f3c8;
  font-weight: 700;
  text-decoration: none;
}

.jh-location-whatsapp:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.jh-location-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: #081d46;
  font-weight: 700;
  text-decoration: none;
}

.jh-location-directions:hover {
  background: #dcecff;
  color: #081d46;
}

.jh-location-info a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.jh-location-map {
  display: flex;
  min-height: 340px;
  background: #dceafa;
}

.jh-location-map iframe {
  display: block;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: auto;
  border: 0;
}

.jh-location-map iframe:focus-visible {
  outline: 3px solid #124b9b;
  outline-offset: -3px;
}

.jh-location [data-aos]:not(.aos-init) {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 991.98px) {
  .jh-location-map {
    min-height: 270px;
  }
}


/* Jeevodaya Hospital — Facilities */
.jh-facilities {
  padding-block: clamp(36px, 5vw, 72px);
  background: #fff;
  color: #081d46;
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-facilities-heading {
  margin-bottom: 22px;
}

.jh-facilities-heading p,
.jh-facility-content p {
  margin: 0;
  color: #435370;
  line-height: 1.6;
}

.jh-facility-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  border: 1px solid #d6e4f2;
  border-radius: 16px;
  background: #f5f9fd;
}

.jh-facility-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #dceafa;
}

.jh-facility-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 42%;
}

.jh-facility-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #081d46;
  color: #fff;
  font-size: 0.75rem;
}

.jh-facility-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(18px, 3vw, 28px);
  border-top: 3px solid #124b9b;
}

.jh-facility-content h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
}

.jh-facility-content a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  color: #124b9b;
  font-weight: 700;
  text-decoration: none;
}

.jh-facility-content a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.jh-facility-content a:focus-visible {
  outline: 2px solid #124b9b;
  outline-offset: 3px;
}

.jh-facilities [data-aos]:not(.aos-init) {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .jh-facility-photo img {
    transition: transform 300ms ease;
  }

  @media (hover: hover) {
    .jh-facility-card:hover img {
      transform: scale(1.035);
    }
  }
}

@media (max-width: 767.98px) {
  .jh-facility-photo img {
    aspect-ratio: 16 / 10;
  }
}

/* Jeevodaya Hospital — Footer */
.jh-hospital-footer {
  --footer-text: #dceafa;
  --footer-line: rgb(220 234 250 / 22%);

  border-top: 4px solid #b8102b;
  background:
    radial-gradient(ellipse at top right, #1c4b82, transparent 52%),
    linear-gradient(115deg, #06152f, #0d2853);
  color: var(--footer-text);
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-hospital-footer-main {
  padding-block: clamp(32px, 5vw, 58px);
}

.jh-hospital-footer-logo {
  display: block;
  width: min(250px, 100%);
  padding: 10px 14px;
  border-radius: 9px;
  background: #fff;
}

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

.jh-hospital-footer p,
.jh-hospital-footer address {
  margin: 0;
  line-height: 1.6;
}

.jh-hospital-footer .jh-hospital-footer-tagline {
  margin: 14px 0 4px;
  color: #fff;
  font-weight: 700;
}

.jh-hospital-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
}

.jh-hospital-footer h2::after {
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: #ff6f86;
  content: "";
}

.jh-hospital-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jh-hospital-footer a {
  color: inherit;
  text-decoration: none;
}

.jh-hospital-footer-links a {
  display: inline-block;
  padding-block: 5px;
}

.jh-hospital-footer-links a:hover,
.jh-hospital-footer-whatsapp:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.jh-hospital-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
}

.jh-hospital-footer-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
}

.jh-hospital-footer-actions .jh-hospital-footer-whatsapp {
  color: #a7f3c8;
}

.jh-hospital-footer-actions .jh-hospital-footer-directions {
  padding: 8px 14px;
  border: 1px solid #a2bbd8;
  border-radius: 8px;
  color: #fff;
}

.jh-hospital-footer-directions:hover {
  background: rgb(255 255 255 / 14%);
}

.jh-hospital-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.jh-hospital-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 14px;
  border-top: 1px solid var(--footer-line);
  font-size: 0.875rem;
}

.jh-hospital-footer-bottom strong {
  color: #fff;
}

@media (max-width: 767.98px) {
  .jh-hospital-footer-links a {
    padding-block: 9px;
  }

  .jh-hospital-footer-bottom {
    flex-direction: column;
  }
}


/* Jeevodaya Hospital — About page */
.jh-about-page {
  color: #081d46;
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-about-banner {
  padding-block: clamp(30px, 5vw, 64px);
  border-bottom: 4px solid #b8102b;
  background: linear-gradient(115deg, #081d46, #174781);
  color: #fff;
}

.jh-about-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  color: #dceafa;
  font-size: 0.875rem;
  list-style: none;
}

.jh-about-breadcrumb li + li::before {
  margin-inline-end: 8px;
  content: "/";
}

.jh-about-breadcrumb a {
  color: #fff;
  text-underline-offset: 3px;
}

.jh-about-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.jh-about-banner p {
  margin: 0;
  color: #dceafa;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.jh-about-care,
.jh-about-visit {
  padding-block: clamp(34px, 5vw, 68px);
}

.jh-about-care-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #d6e4f2;
  border-radius: 12px;
  background: #f5f9fd;
}

.jh-about-care-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.jh-about-care-card p {
  margin: 0;
  color: #435370;
  line-height: 1.6;
}

.jh-about-care-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  color: #124b9b;
  font-weight: 700;
  text-decoration: none;
}

.jh-about-care-card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.jh-about-visit {
  padding-top: 0;
}

.jh-about-visit-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: clamp(22px, 4vw, 40px);
  border-inline-start: 4px solid #e4526a;
  border-radius: 14px;
  background: #081d46;
  color: #fff;
}

.jh-about-visit-panel h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.jh-about-visit-panel p {
  margin: 0;
  color: #dceafa;
}

.jh-about-visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jh-about-visit-actions .btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}


/* Jeevodaya Hospital — Departments page */
.jh-departments-page {
  --dept-navy: #081d46;
  --dept-blue: #124b9b;
  --dept-red: #b8102b;
  --dept-border: #d6e4f2;
  color: var(--dept-navy);
  font-family: "DM Sans", system-ui, sans-serif;
}

.jh-department-banner {
  padding-block: clamp(32px, 5vw, 64px);
  border-bottom: 4px solid var(--dept-red);
  background: linear-gradient(115deg, #081d46, #174781);
  color: #fff;
}

.jh-department-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  color: #dceafa;
  font-size: 0.875rem;
}

.jh-department-breadcrumb a {
  color: #fff;
  text-underline-offset: 3px;
}

.jh-department-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.jh-department-banner p {
  max-width: 60ch;
  margin: 0;
  color: #dceafa;
}

.jh-department-index {
  padding-block: 24px;
  border-bottom: 1px solid var(--dept-border);
  background: #eff6fd;
}

.jh-department-index h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.jh-department-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jh-department-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--dept-border);
  border-radius: 8px;
  background: #fff;
  color: var(--dept-blue);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.jh-department-index a:hover {
  border-color: var(--dept-blue);
  background: #e4effc;
}

.jh-department-index .jh-department-index-emergency {
  border-color: #f0b6c2;
  background: #fff4f6;
  color: var(--dept-red);
}

.jh-department-sections {
  display: grid;
  gap: clamp(16px, 3vw, 30px);
  padding-block: clamp(24px, 5vw, 60px);
}

.jh-department-detail {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  overflow: hidden;
  border: 1px solid var(--dept-border);
  border-radius: 16px;
  background: #f5f9fd;
}

.jh-department-detail:target {
  outline: 2px solid var(--dept-blue);
  outline-offset: 4px;
}

.jh-department-detail-photo {
  position: relative;
  min-height: 240px;
  margin: 0;
  background: #e4effc;
}

.jh-department-detail-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jh-department-detail-emergency img {
  object-position: 76% center;
}

.jh-department-detail-photo figcaption {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--dept-navy);
  color: #fff;
  font-size: 0.75rem;
}

.jh-department-detail-copy {
  align-self: center;
  padding: clamp(20px, 4vw, 44px);
}

.jh-department-detail-copy h2 {
  margin: 0 0 12px;
  padding-inline-start: 12px;
  border-inline-start: 3px solid var(--dept-blue);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.jh-department-detail-copy p,
.jh-department-detail-copy ul {
  margin: 0;
  color: #435370;
  line-height: 1.65;
}

.jh-department-detail-copy ul {
  margin-top: 12px;
  padding-inline-start: 20px;
}

.jh-department-detail-copy li + li {
  margin-top: 5px;
}

.jh-department-detail-emergency {
  border-color: #f0b6c2;
  background: #fff4f6;
}

.jh-department-detail-emergency h2 {
  border-inline-start-color: var(--dept-red);
}

.jh-department-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  color: var(--dept-red);
  font-weight: 700;
  text-underline-offset: 4px;
}

.jh-department-page a:focus-visible,
.jh-departments-page main a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.jh-department-visit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: clamp(20px, 4vw, 38px);
  border-inline-start: 4px solid #e4526a;
  border-radius: 14px;
  background: var(--dept-navy);
  color: #fff;
}

.jh-department-visit h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.jh-department-visit p {
  margin: 0;
  color: #dceafa;
}

.jh-department-visit .btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.jh-departments-page .jh-department-visit a:focus-visible {
  outline-color: #fff;
}

@media (min-width: 768px) {
  .jh-department-detail:nth-of-type(even) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .jh-department-detail:nth-of-type(even) .jh-department-detail-photo {
    grid-column: 2;
    grid-row: 1;
  }

  .jh-department-detail:nth-of-type(even) .jh-department-detail-copy {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 767.98px) {
  .jh-department-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .jh-department-detail-photo {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .jh-department-detail-photo {
      overflow: hidden;
    }

    .jh-department-detail-photo img {
      transition: transform 280ms ease;
    }

    .jh-department-detail:hover .jh-department-detail-photo img {
      transform: scale(1.025);
    }
  }
}

.jh-facilities-page .jh-department-banner {
  background:
    radial-gradient(ellipse at top right, rgb(65 147 212 / 32%), transparent 58%),
    linear-gradient(115deg, #081d46, #174781);
}

/* Shared photo banners for the inner pages */
.jh-page-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: clamp(220px, 24vw, 320px);
  background: #081d46;
}

.jh-page-banner-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 80%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.jh-page-banner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #081d46 8%, #081d46 23%,
    rgb(8 29 70 / 89%) 49%, rgb(8 29 70 / 18%) 100%);
  content: "";
}

.jh-facilities-page .jh-page-banner { background: #081d46; }

.jh-page-banner .container-xxl { padding-inline: clamp(16px, 4vw, 48px); }

.jh-page-banner-caption {
  position: absolute;
  right: 12px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #081d46;
  color: #fff;
  font-size: .7rem;
}

.jh-page-banner-departments .jh-page-banner-image {
  object-position: center 35%;
}

.jh-page-banner-contact .jh-page-banner-image {
  object-position: 72% 58%;
}

.jh-skip-link:focus {
  position: fixed;
  z-index: 1100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #081d46;
}

@media (max-width: 767.98px) {
  .jh-page-banner-image { width: 100%; }
  .jh-page-banner::before {
    background: linear-gradient(90deg, rgb(8 29 70 / 95%), rgb(8 29 70 / 72%));
  }
}
