/* ==========================================================================
   TALENT TEST BANNER (major link block) — redesign. Presentation only: the
   template logic (login-first CTA for visitors) and the CMS background image
   (set inline by the template) are unchanged.
   ========================================================================== */

body .main-wrapper-major-link-block {
  --ink: #0f243e;
  --lime: #a6cf37;
  --teal: #52cfae;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: clamp(1rem, 4vw, 4.5rem);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  height: auto;
  min-height: clamp(460px, 72vh, 680px);
  margin: clamp(2rem, 5vw, 4rem) var(--pad);
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  border-radius: clamp(28px, 4vw, 48px);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  font-family: var(--sans);
  text-align: center;
  box-shadow: 0 50px 90px -50px rgba(15, 36, 62, 0.6);
}
@media (min-width: 1024px) and (hover: hover) {
  body .main-wrapper-major-link-block { background-attachment: fixed; } /* gentle parallax */
}

/* overlay: deep navy wash + soft colour glows (replaces the old wave frame) */
body .main-wrapper-major-link-block::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  background-image:
    radial-gradient(34rem 20rem at 0% 100%, rgba(166, 207, 55, 0.34), transparent 70%),
    radial-gradient(30rem 20rem at 100% 0%, rgba(82, 207, 174, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(8, 24, 44, 0.55) 0%, rgba(8, 24, 44, 0.82) 100%);
  background-size: auto;
  background-repeat: no-repeat;
}
/* thin inner frame for a refined edge */
body .main-wrapper-major-link-block::before {
  content: "";
  position: absolute;
  inset: 0.9rem;
  z-index: 1;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

body .main-wrapper-major-link-block .z-index-5 { position: relative; z-index: 5; }

body .main-wrapper-major-link-block .ml-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 800 0.72rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}
body .main-wrapper-major-link-block .ml-eyebrow__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--teal));
  box-shadow: 0 0 0 4px rgba(166, 207, 55, 0.3);
}

body .main-wrapper-major-link-block .heading {
  max-width: 20ch;
  margin: 0;
  font: 300 clamp(2.2rem, 5.4vw, 4.6rem)/1.06 var(--serif);
  letter-spacing: -0.02em;
  text-transform: none;
  text-align: center;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
body .main-wrapper-major-link-block .body {
  max-width: 38rem;
  width: 100%;
  margin: 1.5rem 0 0;
  padding: 0;
  font: 500 clamp(1rem, 1.4vw, 1.15rem)/1.75 var(--sans);
  text-align: center;
  text-align-last: center;
  color: rgba(255, 255, 255, 0.88);
}
body .main-wrapper-major-link-block .body p { margin: 0 0 0.6em; }
body .main-wrapper-major-link-block .body p:last-child { margin-bottom: 0; }

/* CTA wrapper only takes space when it actually holds a link */
body .main-wrapper-major-link-block .ml-cta-wrap { width: auto; max-width: none; margin: 0; padding: 0; }
body .main-wrapper-major-link-block .ml-cta-wrap:not(:has(a)) { display: none; }
body .main-wrapper-major-link-block .cta { margin-top: 2.25rem; }
body .main-wrapper-major-link-block .cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: auto;
  height: auto;
  padding: 1.05rem 1.9rem;
  border: 0;
  border-radius: 999px;
  font: 800 0.98rem/1 var(--sans);
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(120deg, #a6cf37 0%, #c2e55e 50%, #6fdcb5 100%);
  box-shadow: 0 16px 34px -14px rgba(120, 190, 40, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, gap 0.35s var(--ease);
}
body .main-wrapper-major-link-block .cta a::after { content: "→"; font-size: 1.1em; line-height: 1; }
body .main-wrapper-major-link-block .cta a:hover,
body .main-wrapper-major-link-block .cta a:focus-visible,
body .main-wrapper-major-link-block .cta a:visited:hover {
  gap: 1.1rem;
  transform: translateY(-3px);
  color: var(--ink);
  font-weight: 800;
  background: linear-gradient(120deg, #b6dc4c 0%, #d0ec80 50%, #86e4c3 100%);
  box-shadow: 0 22px 40px -14px rgba(120, 190, 40, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
body .main-wrapper-major-link-block .cta a:visited { color: var(--ink); }
body .main-wrapper-major-link-block .cta a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ----- Reveal motion (only when JS added .has-ml-reveal) ------------------ */
.has-ml-reveal .main-wrapper-major-link-block [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.has-ml-reveal .main-wrapper-major-link-block [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 599px) {
  body .main-wrapper-major-link-block::before { inset: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  body .main-wrapper-major-link-block * { transition: none !important; }
}
