/*
 * Technology/SaaS Clone — Test Page Stylesheet
 * Hand-coded (no Elementor, no GSAP). Cloned from financial-test, content/
 * images/geometry swapped to post 7759's (/by-industry/technology-saas/)
 * real data. Two real structural differences: Key Challenges has 4 mockup
 * panels (not 3), Compliance & Regulatory Highlights has 4 chart panels
 * (not 2) — both confirmed via post 7759's own _elementor_data. Scoped
 * under .tsa-page.
 */

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

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

  position: relative;
  font-family: "Public Sans", sans-serif;
  color: var(--tsa-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. */
.tsa-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.tsa-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;
}

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

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

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

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

.tsa-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;
}


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

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

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

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

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

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

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

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

.tsa-page section.tsa-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;
}

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

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

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

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

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

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

.tsa-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tsa-check-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.tsa-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tsa-green);
  position: relative;
}
.tsa-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. FOUR panels here (not 3):
     mockup 1: RIGHT + top     mockup 2: RIGHT + BOTTOM
     mockup 3: left + top      mockup 4: left + top

   KNOWN GAP IN THE SOURCE DATA — see section-2's PHP docblock for the full
   story: panels 3 and 4 resolve to PIXEL-IDENTICAL positions at tablet and
   mobile (confirmed against post-7759's own generated CSS — no z-index or
   hide-flag differentiates them either), which would make one of two
   different images simply never visible. Read as a genuine authoring gap
   on the live page, not an intentional overlap. DEVIATED from the literal
   value: panel 4's tablet/mobile `top` is panel 3's own top + height
   (17%+130px=~35% tablet, 4%+175px=~40% mobile) instead of the identical
   real value, so both stay visible. Every other number here is real.

   Container `.tsa-mac-right` min-heights (440 / 425 / 484) are post 7759's
   own real values (440 differs slightly from the 447 seen on some sibling
   pages — not a typo, re-confirmed against this page's own data). */
.tsa-mac-right {
  position: relative;
  min-height: 440px;
}
/* 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. */
.tsa-mac-mockup {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.tsa-mac-mockup--1 { right: 29%; top:    -3%; width: 55%; height: 101px; }
.tsa-mac-mockup--2 { right: 23%; bottom: 53%; width: 75%; height: 117px; }
.tsa-mac-mockup--3 { left:  71%; top:    46%; width: 24%; height: 190px; }
.tsa-mac-mockup--4 { left:   9%; top:    49%; width: 44%; height: 205px; }

@media (max-width: 1024px) {
  .tsa-mac-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .tsa-mac-content { grid-template-columns: 1fr; }
  .tsa-mac-right { min-height: 425px; margin-top: 24px; }
  .tsa-mac-mockup--1 { right: 12%; top: 37%; width:  79%; height: 152px; background-size: cover; }
  .tsa-mac-mockup--2 { right:  2%; bottom: 3%; width: 100%; height: 109px; }
  .tsa-mac-mockup--3 { left:   2%; top:  4%; width: 100%; height: 130px; }
  .tsa-mac-mockup--4 { left:   2%; top: 35%; width: 100%; height: 130px; } /* deviated, see comment above */
}
@media (max-width: 767px) {
  .tsa-mac-right { min-height: 484px; }
  .tsa-mac-mockup--1 { right:  7%; top: 38%; width: 72%; height: 145px; }
  .tsa-mac-mockup--2 {           bottom: 7%; width: 100%; height: 110px; }
  .tsa-mac-mockup--3 { left:   2%; top:  4%; width: 94%; height: 175px; }
  .tsa-mac-mockup--4 { left:   2%; top: 40%; width: 94%; height: 175px; } /* deviated, see comment above */
}

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

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

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

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

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

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

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

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

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

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

/* FOUR panels here (not the family's usual 2) — confirmed real via post
   7759's own data, same shape as energy-utilities' equivalent section
   (see that page for the general 4-panel method). Anchors: panels 1 & 2
   RIGHT+BOTTOM, panels 3 & 4 RIGHT+top. Container height not a live value
   (1-row CSS Grid, absolutely-positioned children only); chosen to
   comfortably contain all four real per-page panel positions — checked
   computationally (no panel off-canvas or >50% covered at any breakpoint).

   FIXED 2026-08-18 — a real browser pass caught panel 2 ("Risk Trend")
   bleeding left into the .tsa-compliance-copy heading at desktop: its
   real right:64%+width:53% sums to 117%, i.e. its left edge sits 17% of
   the container's own width to the left of that container — clipping
   "Highlights" to "Highligh" on screen. Confirmed against the still-live
   Elementor original (intoneccm.com/by-industry/technology-saas/), which
   has no such overlap, so this is a genuine layout defect, not a design
   intent to preserve. Nudged `right` from 64% to 47% (left edge now flush
   with the container's own edge instead of bleeding past it) — same
   "nudge the offending value, document the deviation" approach used for
   this page's Key Challenges duplicate-mockup fix. Left the
   tablet/mobile rules for this panel untouched: below 1024px the copy
   and charts stack vertically instead of sitting side by side, so the
   same negative-left-edge math never reaches real text there. */
.tsa-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. */
.tsa-compliance-chart {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.tsa-compliance-chart--1 { right:  8%; bottom: 57%; width: 56%; height:  94px; }
.tsa-compliance-chart--2 { right: 47%; bottom: 38%; width: 53%; height: 176px; }
.tsa-compliance-chart--3 { right: 60%; top:    45%; width: 45%; height: 146px; }
.tsa-compliance-chart--4 { right: -7%; top:    57%; width: 63%; height: 116px; }

@media (max-width: 1024px) {
  .tsa-compliance-charts { width: 100%; min-height: 320px; }
  .tsa-compliance-chart--1 { right:  -2%; bottom: 76%; width: 68%; height:  94px; }
  .tsa-compliance-chart--2 { right:  52%; bottom: 36%; width: 68%; height: 139px; }
  .tsa-compliance-chart--3 { right: -11%; top:    29%; width: 59%; height: 137px; }
  .tsa-compliance-chart--4 { right:  49%; top:    54%; width: 73%; height: 137px; }
}
@media (max-width: 767px) {
  .tsa-compliance-charts { min-height: 300px; }
  .tsa-compliance-chart--1 { right:  -6%; bottom: 18%; width: 62%; height: 95px; }
  .tsa-compliance-chart--2 { right:  48%; bottom: -5%; width: 57%; height: 140px; }
  .tsa-compliance-chart--3 { right:  46%; top:    18%; width: 58%; height: 101px; }
  .tsa-compliance-chart--4 { right:   0%; top:     6%; width: 57%; height:  86px; }
}

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

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

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

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

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

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

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

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

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

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

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

/* ---------- Lead magnet CTA (.lm-cta-banner) — page-scope override ----------
   .tsa-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. */
.tsa-page section.lm-cta-banner {
  padding: 0 4vw;
}
@media (max-width: 900px) {
  .tsa-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. */
.tsa-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%);
}
