/*
 * Public Sector & Education Clone — Test Page Stylesheet
 * Hand-coded (no Elementor, no GSAP). Cloned from financial-test, content/
 * images/geometry swapped to post 8114's (/by-industry/public-sector-and-
 * education/) real data. TWO simplifications from the usual pattern: Key
 * Challenges' right column is a single flat cover-sized image (no mockup
 * collage), and Compliance & Regulatory Highlights is likewise a single
 * flat image (same shape as manufacturing-and-supply-chain's equivalent
 * section) — both confirmed via post 8114's own _elementor_data. Scoped
 * under .pse-page.
 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.pse-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pse-check-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.pse-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pse-green);
  position: relative;
}
.pse-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);
}

/* UNLIKE every other page in this family, the right column here is ONE
   flat image, not an absolute-positioned mockup collage — confirmed via
   post 8114's own data: no offset/position:absolute settings at all on
   that container, just a single `background-size:cover` image. Real
   min-heights: 440px desktop (also the tablet value — live sets no
   tablet-specific override, so it inherits desktop's), 500px mobile
   (GROWS on mobile, same shape as every mockup collage in this family even
   though this isn't one). `overflow:hidden` is real too (needed because
   `cover` at this exact box ratio, unlike sibling pages' `contain`). */
.pse-mac-right {
  min-height: 440px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

@media (max-width: 1024px) {
  .pse-mac-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pse-mac-content { grid-template-columns: 1fr; }
  .pse-mac-right { margin-top: 24px; }
}
@media (max-width: 767px) {
  .pse-mac-right { min-height: 500px; }
}

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

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

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

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

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

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

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

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

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

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

/* SINGLE FLAT IMAGE here, not a floating chart collage — same shape as
   manufacturing-and-supply-chain's equivalent section. Post 8114's real
   second column has no offset/absolute-position settings, just one plain
   centered background-image at background-size:contain, real min-heights
   295px desktop / 146px tablet. No real mobile min-height on live either
   (empty custom value) — 220px chosen to comfortably show the image at a
   typical mobile column width rather than left unset (which would collapse
   to 0 height on a content-empty flex item and never show the image). */
.pse-compliance-image {
  flex: 1 1 400px;
  min-height: 295px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

@media (max-width: 1024px) {
  .pse-compliance-image { width: 100%; min-height: 146px; }
}
@media (max-width: 767px) {
  .pse-compliance-image { min-height: 220px; }
}

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

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

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

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

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

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

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

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

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

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

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

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