/* /solutions/hospitals — match marketing mock; PublicWeb accent #06cc06 */
.page-solutions-hospitals {
  --hospitals-green: var(--tc-accent, #06cc06);
  --hospitals-green-hover: var(--tc-accent-hover, #05a805);
  --hospitals-ink: var(--tc-ink, #1a2b2b);
  --hospitals-muted: var(--tc-muted, #5c6b6b);
  --hospitals-mint: #f0f9f0;
  --hospitals-mint-deep: #e2f5e2;
  --hospitals-surface: #ffffff;
  --hospitals-shadow: 0 22px 48px rgba(26, 43, 43, 0.16);
  --hospitals-shadow-sm: 0 10px 24px rgba(26, 43, 43, 0.1);
  position: relative;
  color: var(--hospitals-ink);
  max-width: min(78rem, 100%);
  padding-block: 1.75rem 2.75rem;
  overflow-x: clip;
}

/* Soft mint wash + blobs (reference atmosphere) */
.page-solutions-hospitals::before {
  content: "";
  position: absolute;
  inset: -1rem -1.5rem auto;
  height: min(48rem, 95vh);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 12% 18%, var(--hospitals-mint-deep) 0%, transparent 70%),
    radial-gradient(ellipse 48% 42% at 88% 12%, rgba(6, 204, 6, 0.1) 0%, transparent 68%),
    radial-gradient(ellipse 55% 45% at 70% 55%, var(--hospitals-mint) 0%, transparent 72%),
    linear-gradient(180deg, #f7fcf7 0%, transparent 78%);
}

.page-solutions-hospitals .hospitals-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--hospitals-ink);
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.page-solutions-hospitals .hospitals-hero__brand {
  color: var(--hospitals-green);
}

.page-solutions-hospitals .hospitals-hero__lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: clamp(0.98rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  color: var(--hospitals-muted);
}

.page-solutions-hospitals .hospitals-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.85rem;
}

.page-solutions-hospitals .hospitals-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--hospitals-green);
  border-color: var(--hospitals-green);
  border-radius: 0.55rem;
  padding-inline: 1.25rem 1.1rem;
  font-weight: 600;
}

.page-solutions-hospitals .hospitals-cta-primary::after {
  content: "→";
  font-size: 1.05em;
  line-height: 1;
}

.page-solutions-hospitals .hospitals-cta-primary:hover,
.page-solutions-hospitals .hospitals-cta-primary:focus {
  background: var(--hospitals-green-hover);
  border-color: var(--hospitals-green-hover);
}

.page-solutions-hospitals .hospitals-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--hospitals-green) !important;
  border: 1.5px solid var(--hospitals-green);
  background: var(--hospitals-surface);
  border-radius: 0.55rem;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.page-solutions-hospitals .hospitals-cta-secondary:hover,
.page-solutions-hospitals .hospitals-cta-secondary:focus {
  background: var(--hospitals-mint);
  color: var(--hospitals-green-hover) !important;
  border-color: var(--hospitals-green-hover);
}

.page-solutions-hospitals .hospitals-cta-secondary__icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.38rem 0 0.38rem 0.62rem;
  border-color: transparent transparent transparent var(--hospitals-green);
}

.page-solutions-hospitals .hospitals-needs__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--hospitals-ink);
}

.page-solutions-hospitals .hospitals-needs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-solutions-hospitals .hospitals-needs__list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--hospitals-ink);
  font-size: 1rem;
  line-height: 1.4;
}

.page-solutions-hospitals .hospitals-needs__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background-color: var(--hospitals-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-size: 0.72rem;
  background-repeat: no-repeat;
  background-position: center;
}

/* Hero layout */
.page-solutions-hospitals .hospitals-hero {
  display: grid;
  gap: 2rem;
  align-items: start;
}

/* Showcase */
.page-solutions-hospitals .hospitals-showcase {
  position: relative;
  width: 100%;
  isolation: isolate;
  display: grid;
  gap: 0.85rem;
}

.page-solutions-hospitals .hospitals-showcase__frame {
  margin: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--hospitals-surface);
  box-shadow: var(--hospitals-shadow-sm);
  border: 1px solid rgba(26, 43, 43, 0.08);
}

.page-solutions-hospitals .hospitals-showcase__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.page-solutions-hospitals .hospitals-showcase__frame--er { order: 1; }
.page-solutions-hospitals .hospitals-showcase__frame--pharmacy { order: 2; }
.page-solutions-hospitals .hospitals-showcase__frame--appointments { order: 3; }

/* Tagline — green rules + center dot */
.page-solutions-hospitals .hospitals-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 2.75rem 0 1.5rem;
  padding: 0 0.5rem;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--hospitals-ink);
}

.page-solutions-hospitals .hospitals-tagline__text {
  flex: 0 1 auto;
}

.page-solutions-hospitals .hospitals-tagline__rule {
  position: relative;
  flex: 1 1 2rem;
  max-width: 5.5rem;
  height: 2px;
  background: var(--hospitals-green);
  border-radius: 1px;
}

.page-solutions-hospitals .hospitals-tagline__rule:first-child::after,
.page-solutions-hospitals .hospitals-tagline__rule:last-child::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hospitals-green);
  transform: translateY(-50%);
}

.page-solutions-hospitals .hospitals-tagline__rule:first-child::after {
  right: -0.15rem;
}

.page-solutions-hospitals .hospitals-tagline__rule:last-child::before {
  left: -0.15rem;
}

.page-solutions-hospitals .hospitals-faq {
  max-width: 40rem;
}

.page-solutions-hospitals .hospitals-faq summary {
  color: var(--hospitals-ink);
}

.page-solutions-hospitals .hospitals-faq p {
  color: var(--hospitals-muted);
}

/* Tablet+: three-frame layered composition (reference mock) */
@media (min-width: 768px) {
  .page-solutions-hospitals .hospitals-showcase {
    display: block;
    min-height: 0;
    margin-top: 0.25rem;
    /* taller stage so frames can render larger */
    padding-bottom: 78%;
  }

  .page-solutions-hospitals .hospitals-showcase__frame {
    position: absolute;
    order: unset;
  }

  /* Left — Payments (overlaps lower-left of center) */
  .page-solutions-hospitals .hospitals-showcase__frame--pharmacy {
    width: 58%;
    left: -2%;
    top: 22%;
    z-index: 2;
    box-shadow: var(--hospitals-shadow-sm);
  }

  /* Center — Appointments (largest, primary) */
  .page-solutions-hospitals .hospitals-showcase__frame--er {
    width: 82%;
    left: 9%;
    top: 0;
    z-index: 3;
    box-shadow: var(--hospitals-shadow);
  }

  /* Right — Services billing (slightly behind center) */
  .page-solutions-hospitals .hospitals-showcase__frame--appointments {
    width: 54%;
    right: -2%;
    left: auto;
    top: 12%;
    z-index: 1;
    box-shadow: var(--hospitals-shadow-sm);
  }
}

/* Desktop: two-column hero; larger trio */
@media (min-width: 1100px) {
  .page-solutions-hospitals {
    max-width: min(84rem, 100%);
  }

  .page-solutions-hospitals .hospitals-hero {
    grid-template-columns: minmax(15rem, 0.72fr) minmax(28rem, 1.35fr);
    gap: 1.5rem 1.75rem;
    align-items: center;
  }

  .page-solutions-hospitals .hospitals-hero__title {
    max-width: none;
  }

  .page-solutions-hospitals .hospitals-showcase {
    padding-bottom: 82%;
  }

  .page-solutions-hospitals .hospitals-showcase__frame--pharmacy {
    width: 56%;
    left: -4%;
    top: 26%;
  }

  .page-solutions-hospitals .hospitals-showcase__frame--er {
    width: 86%;
    left: 7%;
  }

  .page-solutions-hospitals .hospitals-showcase__frame--appointments {
    width: 52%;
    right: -4%;
    top: 10%;
  }
}

@media (min-width: 1400px) {
  .page-solutions-hospitals .hospitals-showcase {
    padding-bottom: 78%;
  }

  .page-solutions-hospitals .hospitals-showcase__frame--er {
    width: 88%;
    left: 6%;
  }

  .page-solutions-hospitals .hospitals-showcase__frame--pharmacy {
    width: 58%;
  }

  .page-solutions-hospitals .hospitals-showcase__frame--appointments {
    width: 54%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-solutions-hospitals .hospitals-showcase__frame {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  @media (min-width: 1100px) {
    .page-solutions-hospitals .hospitals-showcase__frame--er:hover {
      transform: translateY(-5px);
    }
  }
}
