/*
 * Healthcare Clone — Test Page Stylesheet
 * Hand-coded (no Elementor, no GSAP). Cloned from financial-test (post
 * 7691's real section outline matches this page's own, section-for-section
 * — same 8-section shape, no lead magnet on either, but only 2 Key
 * Challenges mockup panels here instead of 3), content/images/geometry
 * swapped to post 7742's (/by-industry/healthcare-and-life-sciences/) real
 * data. Scoped under .hls-page to avoid bleeding into the rest of the site.
 */

body.page-id-15526 .rkch-spacer, body.page-id-7742 .rkch-spacer { display: none !important; height: 0 !important; }

.hls-page {
  --hls-primary: #233963;
  --hls-text: #1E2E4C;
  --hls-white: #FFFFFF;
  --hls-neutral-9: #F4F6F9;
  --hls-neutral-8: #EBEEF2;
  --hls-neutral-7: #DADEE3;
  --hls-neutral-6: #A5ABB3;
  --hls-green: #2ECC71;
  --hls-gradient-teal-green: linear-gradient(90deg, #6AC2B7 0%, #8AD6C0 50%, #8ADBBB 75%, #86DCAF 87.5%, #84DDA5 93.75%, #95E091 96.88%, #9FDD5F 100%);
  --hls-mint-gradient: linear-gradient(28deg, #E3FFCC 0%, #D0FFF1 100%);
  --hls-card-shadow: 0 10px 35px 0 rgba(35, 57, 99, 0.12);
  --hls-radius: 24px;

  position: relative;
  font-family: "Public Sans", sans-serif;
  color: var(--hls-text);
  background: #F6F9FB;
}

/* Site-wide subtle tiled background pattern (from Figma "22" node),
   64x64px tile at 50% opacity, running the full height of the page.
   Confirmed via Figma that it sits behind every section — only visible
   on sections that don't have their own photo/color background. */
.hls-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/global-pattern.png");
  background-repeat: repeat;
  background-size: 64px 64px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hls-page * { box-sizing: border-box; }

.hls-page img { max-width: 100%; height: auto; display: block; }

.hls-page section {
  padding: 96px 4vw;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .hls-page section { padding: 56px 20px; }
}

.hls-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- Typography ---------- */

.hls-page h1, .hls-page h2, .hls-page h3, .hls-page h4 {
  font-family: "Public Sans", sans-serif;
  color: var(--hls-text);
  font-weight: 700;
  margin: 0;
}

.hls-page p { margin: 0; line-height: 1.55; }

.hls-h2 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
}

@media (max-width: 767px) {
  .hls-h2 { font-size: 28px; line-height: 1.25; }
}

/* Two-column header row used by most sections: heading left, copy right */
.hls-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hls-head-row p { color: var(--hls-text); font-size: 16px; max-width: 529px; }

@media (max-width: 900px) {
  .hls-head-row { flex-direction: column; gap: 16px; }
  .hls-head-row p { max-width: 100%; }
}

/* ---------- Buttons ---------- */

.hls-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}

.hls-btn--outline {
  background: var(--hls-white);
  border: 2px solid var(--hls-primary);
  color: var(--hls-primary);
}

.hls-btn--outline:hover { background: var(--hls-primary); color: var(--hls-white); }

.hls-btn--small {
  padding: 8px 12px;
  font-size: 14px;
  border: 2px solid #6AC2B7;
  background: transparent;
  color: var(--hls-text);
}

/* ---------- Hero ---------- */

.hls-hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 4vw 120px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  overflow: hidden;
}


.hls-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hls-hero-eyebrow {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.hls-hero-h1 {
  color: #fff !important;
  font-size: 100px;
  line-height: 1.04;
  font-weight: 700;
  margin: 0;
}

.hls-hero-sub {
  color: #D1D5DB;
  font-size: 22px;
  line-height: 1.4;
  max-width: 860px;
}

@media (max-width: 900px) {
  .hls-hero-h1 { font-size: 56px; }
  .hls-hero-sub { font-size: 18px; }
}

/* ---------- Overview ---------- */

.hls-page section.hls-overview { text-align: center; padding-bottom: 0; }
.hls-overview .hls-h2 {
  margin-bottom: 20px;
  line-height: 52px;
  color: var(--hls-primary);
}
.hls-overview .hls-overview-copy {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 26px;
  color: var(--hls-primary);
}

/* ---------- Key Challenges (Mac-mockup frame) ---------- */

.hls-page section.hls-challenges {
  padding-top: 0;
  background-image: url("/wp-content/uploads/2025/07/image-196.png");
  background-position: top left;
  background-repeat: no-repeat;
  background-size: cover;
}

.hls-mac-frame {
  border: 5px solid var(--hls-text);
  border-radius: var(--hls-radius);
  overflow: hidden;
  background: #fff;
}

.hls-mac-toolbar img { width: 100%; display: block; }

.hls-mac-head {
  background: var(--hls-neutral-9);
  border-bottom: 1px solid var(--hls-neutral-7);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hls-mac-head .hls-h2 { flex-shrink: 0; }
.hls-mac-head p { max-width: 693px; font-size: 16px; }

.hls-mac-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #F5FEFF;
  padding: 40px 32px;
}

.hls-mac-left h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hls-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.hls-check-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.hls-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hls-green);
  position: relative;
}
.hls-check-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* FIXED 2026-08-17. Every value below is read from post 7691's real
   _elementor_data + the matching uploads/elementor/css/post-7691.css, not
   guessed — the previous version (`top:0;left:10%;width:78%` etc, no
   breakpoint overrides at all) was placeholder positioning on `<img>` tags
   that had no explicit height, so it could never track live regardless of
   viewport width.

   ANCHOR RESOLUTION — same trap hit on other pages in this project, so
   resolved carefully: `_offset_orientation_h: end` means the panel is
   anchored by RIGHT (value `_offset_x_end`), not left; likewise
   `_offset_orientation_v: end` means BOTTOM. Orientation has no per-device
   variants, so each panel keeps the same anchor pair at every breakpoint —
   only the values change. ONLY 2 PANELS HERE (not 3 — post 7742's real
   container genuinely holds 2 image children):
     mockup 1: RIGHT + top     mockup 2: left + top
   A value omitted at a breakpoint means live leaves that device field
   empty and genuinely inherits the next larger breakpoint's value.

   Container `.hls-mac-right` min-heights (328 / 425 / 372) are post 7742's
   own real values, NOT copied from a sibling — note this page's mobile
   height (372) sits between financial-services' 484 and its own desktop
   328, a different growth curve than the other pages in this family. */
.hls-mac-right {
  position: relative;
  min-height: 328px;
}
/* No box-shadow / border-radius here: verified across all 8 live pages that
   NOT ONE positioned panel carries any Elementor shadow or radius setting.
   These PNGs already have their own white card + soft shadow baked into the
   artwork, so adding a CSS shadow drew a SECOND, larger shadowed rectangle
   around the letterboxed empty space of the box. Removed 2026-08-18. */
.hls-mac-mockup {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.hls-mac-mockup--1 { right: 47%; top:    -3%; width: 50%; height: 190px; }
.hls-mac-mockup--2 { left:  42%; top:    40%; width: 51%; height: 190px; }

@media (max-width: 1024px) {
  .hls-mac-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hls-mac-content { grid-template-columns: 1fr; }
  .hls-mac-right { min-height: 425px; margin-top: 24px; }
  .hls-mac-mockup--1 { right: 12%; top: 49%; width: 79%; height: 182px; background-size: cover; }
  .hls-mac-mockup--2 { left:   2%; top:  4%; width: 87%; height: 182px; }
}
@media (max-width: 767px) {
  .hls-mac-right { min-height: 372px; }
  .hls-mac-mockup--1 { right:  7%; top: 52%; width: 72%; height: 175px; }
  .hls-mac-mockup--2 { left:   2%;          width: 75%; height: 175px; }
}

/* ---------- Solutions by Function ---------- */

.hls-solutions { background: #fff; }
.hls-solutions .hls-h2 { margin-bottom: 8px; }
.hls-solutions-intro { font-size: 20px; margin-bottom: 32px; }

.hls-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hls-solution-card {
  background: var(--hls-neutral-9);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hls-solution-label {
  display: inline-block;
  align-self: flex-start;
  background: var(--hls-text);
  color: #fff;
  font-weight: 600;
  font-size: 24px;
  padding: 3px 8px;
}

.hls-solution-card p {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.35;
  color: var(--hls-text);
}

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

/* ---------- Compliance & Regulatory Highlights ---------- */

.hls-compliance { background: #fff; }
.hls-compliance-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hls-compliance-copy { max-width: 490px; }
.hls-compliance-copy .hls-h2 { margin-bottom: 20px; }
.hls-compliance-copy p { font-size: 20px; }

/* FIXED 2026-08-17 — same conversion/anchor-resolution as .hls-mac-mockup
   above; see that block's comment for the general method. Anchors:
     chart 1: RIGHT + BOTTOM     chart 2: RIGHT + top
   Container height is NOT a live value — post 7691's own wrapper
   (`c063cd7`) has no explicit min-height (it's a 1-row CSS Grid holding only
   absolutely-positioned children, which don't contribute to grid auto-
   sizing on live either), so heights below are chosen to just contain both
   panels at their resolved positions without clipping, worked out from each
   panel's own real width/height/anchor. Re-check if this card's copy or
   images ever change enough to alter the panels' real heights. */
.hls-compliance-charts {
  position: relative;
  flex: 1 1 400px;
  min-height: 320px;
}
/* No box-shadow / border-radius here: verified across all 8 live pages that
   NOT ONE positioned panel carries any Elementor shadow or radius setting.
   These PNGs already have their own white card + soft shadow baked into the
   artwork, so adding a CSS shadow drew a SECOND, larger shadowed rectangle
   around the letterboxed empty space of the box. Removed 2026-08-18. */
.hls-compliance-chart {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.hls-compliance-chart--1 { right:  8%; bottom: 38%; width: 53%; height: 176px; }
.hls-compliance-chart--2 { right: 46%; top:    45%; width: 51%; height: 146px; }

@media (max-width: 1024px) {
  .hls-compliance-charts { width: 100%; min-height: 320px; }
  .hls-compliance-chart--1 { right: -2%; bottom: 36%; width: 73%; height: 139px; }
  .hls-compliance-chart--2 { right: 24%; top:    54%; width: 80%; height: 137px; }
}
@media (max-width: 767px) {
  /* min-height must be 320px, NOT a smaller value sized just to this
     breakpoint's own panels in isolation. Both cards are OPAQUE
     white-background PNGs with a heading baked into the top of the image
     ("Error Rate Tracker" / "Task Prioritization Matrix") — confirmed by
     opening the actual files. Same real bug financial-test hit and fixed
     (see that file): chart 1's bottom-anchored `-5%` offset spills below the
     box, so too small a container puts its title directly under chart 2's
     card. These per-page values are IDENTICAL to insurance-test's own
     compliance chart panels (confirmed via post 7742's JSON, not assumed
     from the sibling), so the same 320px clears them with margin here too;
     re-derive if either panel's copy or image changes. */
  .hls-compliance-charts { min-height: 320px; }
  .hls-compliance-chart--1 {              bottom: -5%; width: 100%; height: 140px; }
  .hls-compliance-chart--2 { right:  0%;  top:     4%; width: 100%; height: 123px; }
}

/* ---------- Benefits ---------- */

.hls-benefits { background: var(--hls-mint-gradient); }
.hls-benefits .hls-h2 { margin-bottom: 48px; }

.hls-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.hls-benefit-card {
  background: #fff;
  border-radius: var(--hls-radius);
  overflow: hidden;
}

.hls-benefit-media {
  height: 191px;
  background: var(--hls-neutral-9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--hls-neutral-7);
  padding: 24px;
}
.hls-benefit-media img { max-height: 100%; width: auto; object-fit: contain; }

.hls-benefit-body { padding: 24px; display: flex; flex-direction: column; gap: 15px; }
.hls-benefit-body h3 { font-size: 22px; font-weight: 600; color: #09101D; }

.hls-benefit-pill {
  align-self: flex-start;
  background: var(--hls-neutral-8);
  color: var(--hls-primary);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 9999px;
}

.hls-benefit-body p { font-size: 16px; font-weight: 500; }

@media (max-width: 1100px) {
  .hls-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hls-benefits-grid { grid-template-columns: 1fr; }
}

/* ---------- Related posts / CTA section wrappers ---------- */

.hls-related { background: #fff; }
.hls-cta {
  background: #fff;
  padding-top: 0 !important;
  padding-bottom: 96px !important;
  overflow-x: hidden;
  overflow-y: visible;
}
@media (max-width: 767px) {
  .hls-cta { padding-bottom: 56px !important; }
}

/* ---------- Lead magnet CTA (.lm-cta-banner) — page-scope override ----------
   .hls-page section{padding:96px 4vw} (0,1,1) otherwise beats the module's
   own .lm-cta-banner padding (0,1,0) — same bug already fixed once for
   .eet-page; ported here. */
.hls-page section.lm-cta-banner {
  padding: 0 4vw;
}
@media (max-width: 900px) {
  .hls-page section.lm-cta-banner {
    padding: 56px 20px !important;
  }
}

/* ---------- CTA section-8 on-scroll pattern layer ----------
   Vanilla-JS port of the live post 7691's .pattern-wrapper/.hrimgwrapperlft
   GSAP ScrollTrigger effect (this page excludes all site GSAP). Fixed
   dimensions from first paint — only `transform` is ever touched by JS,
   never width/height/margin, to avoid reflow. */
.hls-cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 170%;
  height: 100%;
  background-image: url("/wp-content/uploads/2025/07/54a768dcea5da5e17c5698fa431189da72b85889-scaled-1.png");
  background-repeat: no-repeat;
  background-position: 0% 0%;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateX(0%);
}
