/* Smooth in-page navigation. The header is fixed (~96px tall), so anchored
   sections need a matching scroll offset or their heading hides beneath it. */
html {
  scroll-behavior: smooth;
}

#impact,
#benefits,
#flexibility,
#courses,
#reviews {
  scroll-margin-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Green palette — matched to the reference: soft sage panels (#92C095)
   and a forest-green accent for buttons/badges/text (#478826). */
:root {
  --background-accent-primary: #92C095;
  --background-accent-primary-dark: #478826;
  --background-accent-primary-light: #EAF3EA;
  --background-accent-primary-light-faded: #CFE6D1;
  --background-color-banner-secondary: #CFE6D1;
  --background-color-banner-tertiary: #CFE6D1;
  --background-color-banner-tertiary-dark: #478826;
  --text-primary-dark: #1B2A1C;
  --text-accent-primary: #478826;
  --border-accent: #478826;
  --link-color: #478826;
  --btn-primary-bg: #478826;
  --btn-primary-bg-hover: #3A6E1F;
  --btn-secondary-border: #478826;
  --btn-secondary-border-hover: #478826;
  --btn-secondary-color: #478826;
  --icon-color-accent: #478826;
  --icon-color-dark: #1B2A1C;
  --btn-up-bg: #DCEBDC;
  --btn-up-color: #478826;
  --btn-up-hover-color: #CFE6D1;
}

/* Policy / heading banner — the original basic-heading-bg.webp (curved
   decoration) was missing; recreate soft texture and size the title. */
.basic-heading {
  margin-top: 40px;
  overflow: hidden;
  background-image:
    radial-gradient(60% 120% at 88% -20%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(70% 130% at 12% 130%, rgba(0, 0, 0, 0.08), transparent 55%),
    repeating-radial-gradient(circle at 78% 130%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 46px);
}

.basic-heading__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
}

/* Success Stories (reviews) — gold subtitle + the diagonal green band behind
   the cards. */
.reviews .subtitle {
  color: var(--text-accent-secondary);
}

.reviews-heading,
.reviews-content {
  position: relative;
  z-index: 2;
}

.reviews-stroke {
  z-index: 1;
}

/* Warm yellow glow behind the impact grid — the original impact-2-bg.webp
   was missing from the saved page, so recreate it as a radial gradient. */
.impact-content::before {
  background-image: radial-gradient(
    42% 42% at 50% 50%,
    rgba(250, 221, 138, 0.6) 0%,
    rgba(250, 221, 138, 0) 72%
  );
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Scroll-reveal entrance animation (mirrors the mockup's ScrollReveal) */
.impact-item,
.study-item,
.reviews-item,
.learning-content,
.section-heading {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.impact-item[data-reveal="visible"],
.study-item[data-reveal="visible"],
.reviews-item[data-reveal="visible"],
.learning-content[data-reveal="visible"],
.section-heading[data-reveal="visible"] {
  opacity: 1;
  transform: none;
}

/* stagger items within a group */
.impact-item:nth-child(2),
.study-item:nth-child(2),
.reviews-item:nth-child(2) { transition-delay: 0.12s; }
.impact-item:nth-child(3),
.study-item:nth-child(3),
.reviews-item:nth-child(3) { transition-delay: 0.24s; }
.impact-item:nth-child(4),
.study-item:nth-child(4) { transition-delay: 0.36s; }
.study-item:nth-child(5) { transition-delay: 0.48s; }

/* overflow:hidden on body/main creates a scroll container that disables
   position:sticky. overflow-x:clip hides horizontal overflow without that
   side effect, so the sticky column works again. */
body,
main {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* Learning ("Mobile-Ready") — constrain the high-res device images to their
   positioned slots, force white text on the green panel, and add a gentle
   parallax drift. */
.learning-left-item_v3 img {
  width: 100%;
  height: auto;
  display: block;
}

.learning-left-item_v3 {
  transition: transform 0.35s ease-out;
}

.learning-right_v3,
.learning-right_v3 .main-section-title,
.learning-right_v3 .learning-right-title_v3,
.learning-right_v3 .learning-right-description_v3 {
  color: #ffffff;
}

/* device icons (Desktop/Tablet/Mobile) are dark SVGs — make them white */
.learning-right-icon_v3 img {
  filter: brightness(0) invert(1);
}

/* Footer sits on the green accent background — force white text */
.footer_v2,
.footer_v2 .footer-menu a,
.footer_v2 .footer-disclaimer,
.footer_v2 .footer-socials-title {
  color: #ffffff;
}

/* Perspectives (study) — sticky left column while the items scroll.
   The theme sets position:sticky but the flex container stretches the column
   to full height, leaving no travel; keep it content-sized and offset below
   the fixed header. */
.study-content_v2 {
  align-items: flex-start;
}

.study-left_v2 {
  align-self: flex-start;
  height: auto;
  top: 104px;
}

/* Hero foggy-green background, recreated 1:1 from the reference: a soft white
   bloom radiating from the top-center over a light-green→mid-green vertical
   gradient. The linear layer follows the greener *edge* profile; the radial
   white glow lifts the center so the middle stays lighter than the sides
   (the "fog" look). Bottom settles at #94C89C. Colors sampled from the ref. */
.banner_v2 {
  background-color: #94C89C;
  /* Simple vertical light→green wash, with just a small soft curve of light
     blooming in the center (not a full-background radial). */
  background-image:
    radial-gradient(
      44% 46% at 50% 38%,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.25) 45%,
      rgba(255, 255, 255, 0) 72%
    ),
    linear-gradient(
      180deg,
      #EDF6EF 0%,
      #E4F1E6 46%,
      #C4E2CA 76%,
      #94C89C 100%
    );
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* smooth, gentle parallax drift */
.banner-img_v2 {
  transition: transform 0.35s ease-out;
}

/* Hero "Advance your potential" badge — the theme reuses the light hero
   background for the pill, which makes it invisible; give it a solid green. */
.banner-subtitle_v2 {
  background: #7FBF8C;
  color: #ffffff;
}

.banner-subtitle_v2 img {
  width: 18px;
  height: 19px;
}

/* Typing effect for the hero title. The ghost holds the final two-line box
   so the surrounding layout never shifts while the text types in. */
.banner-title_v2 {
  position: relative;
  color: #1f2328;
  line-height: 0.98;
  max-width: none;
  min-height: auto;
}

/* Only the title text spans preserve the forced line break; the <h1> itself
   stays normal so the whitespace between the spans in the markup collapses
   (otherwise it renders as a phantom blank line inside the title box). */
.banner-title_v2 > span {
  white-space: pre;
}

/* Darker hero sub-text to match the mockup, sitting closer to the title */
.banner-description_v2 {
  color: #374151;
  margin-top: -4px;
}

.banner-title_v2 .type-ghost {
  visibility: hidden;
}

.banner-title_v2 > span[aria-hidden="true"]:first-child {
  position: absolute;
  inset: 0;
}

/* Gentle float for the hero decorative icons */
.banner-img_v2 img[src*="hero-icon"] {
  animation: heroFloat 7s ease-in-out infinite;
  /* Recolor the decorative icons to a faint white to match the reference */
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
