/* ==========================================================================
   Formation landing page and shared formation calendar
   ========================================================================== */

.post-type-archive-formation .fsgt93-main {
  min-width: 0;
}

.fsgt93-formation-landing {
  --fsgt93-formation-navy: #0e2c4f;
  --fsgt93-formation-blue: #1c579e;
  --fsgt93-formation-red: #d63833;
  --fsgt93-formation-gold: #f2b84b;
  --fsgt93-formation-cream: #fffaf0;
  overflow: hidden;
  border: 1px solid #d3dfed;
  border-radius: 18px 18px 18px 0;
  background: #fff;
  box-shadow: 0 22px 58px rgba(14, 44, 79, 0.09);
}

.fsgt93-formation-landing h1,
.fsgt93-formation-landing h2,
.fsgt93-formation-landing p {
  margin-top: 0;
}

.fsgt93-formation-landing__hero {
  position: relative;
  min-height: clamp(470px, 68vh, 690px);
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(14, 44, 79, 0.99) 0%, rgba(14, 44, 79, 0.94) 52%, rgba(28, 87, 158, 0.86) 100%);
  color: #fff;
  isolation: isolate;
}

.fsgt93-formation-landing__hero::before,
.fsgt93-formation-landing__hero::after {
  position: absolute;
  content: "";
  z-index: -1;
  border-radius: 50%;
}

.fsgt93-formation-landing__hero::before {
  width: min(52vw, 650px);
  aspect-ratio: 1;
  right: -14%;
  bottom: -42%;
  border: clamp(45px, 7vw, 94px) solid rgba(242, 184, 75, 0.92);
}

.fsgt93-formation-landing__hero::after {
  width: min(34vw, 430px);
  aspect-ratio: 1;
  right: 4%;
  top: -24%;
  border: clamp(18px, 3vw, 42px) solid rgba(214, 56, 51, 0.82);
}

.fsgt93-formation-landing__hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(760px, 76%);
  min-height: inherit;
  padding: clamp(42px, 7vw, 94px);
  animation: fsgt93-formation-rise 680ms cubic-bezier(.2, .7, .2, 1) both;
}

.fsgt93-formation-landing__eyebrow {
  margin-bottom: 20px;
  color: var(--fsgt93-formation-gold);
  font: 700 0.78rem/1.35 "IBM Plex Sans", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fsgt93-formation-landing__hero h1 {
  max-width: 10ch;
  margin-bottom: 24px;
  color: #fff !important;
  font-size: clamp(3.1rem, 7vw, 6.8rem) !important;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.91 !important;
}

.fsgt93-formation-landing__lead {
  max-width: 56ch;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.55;
}

.fsgt93-formation-landing__scroll,
.fsgt93-formation-landing__catalog,
.fsgt93-formation-landing__all-dates,
.fsgt93-formation-landing__contact a {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.fsgt93-formation-landing__scroll {
  padding-bottom: 5px;
  border-bottom: 2px solid var(--fsgt93-formation-gold);
  color: #fff !important;
}

.fsgt93-formation-landing__scroll span,
.fsgt93-formation-landing__all-dates span,
.fsgt93-formation-landing__contact a span {
  transition: transform 180ms ease;
}

.fsgt93-formation-landing__scroll span {
  color: var(--fsgt93-formation-gold);
}

.fsgt93-formation-landing__scroll:hover span,
.fsgt93-formation-landing__scroll:focus-visible span {
  transform: translateY(4px);
}

.fsgt93-formation-landing__hero-mark {
  position: absolute;
  right: 3%;
  bottom: -0.16em;
  color: rgba(255, 255, 255, 0.09);
  font-size: clamp(10rem, 28vw, 25rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.8;
  user-select: none;
}

.fsgt93-formation-landing__intro,
.fsgt93-formation-landing__families,
.fsgt93-formation-landing__calendar,
.fsgt93-formation-landing__vision,
.fsgt93-formation-landing__contact {
  padding: clamp(46px, 7vw, 88px);
}

.fsgt93-formation-landing__intro,
.fsgt93-formation-landing__vision {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.fsgt93-formation-landing__section-number {
  margin-bottom: 18px;
  color: var(--fsgt93-formation-red);
  font: 700 0.78rem/1 "IBM Plex Sans", sans-serif;
  letter-spacing: 0.14em;
}

.fsgt93-formation-landing h2 {
  max-width: 15ch;
  margin-bottom: 0;
  color: var(--fsgt93-formation-navy) !important;
  font-size: clamp(2rem, 4.3vw, 4rem) !important;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98 !important;
}

.fsgt93-formation-landing__prose {
  color: #344f6e;
  font-size: clamp(1rem, 0.5vw + 0.92rem, 1.14rem);
  line-height: 1.72;
}

.fsgt93-formation-landing__prose p:last-of-type {
  margin-bottom: 0;
}

.fsgt93-formation-landing__catalog {
  margin-top: 28px;
  padding: 10px 0;
  border-bottom: 2px solid var(--fsgt93-formation-red);
  color: var(--fsgt93-formation-red) !important;
}

.fsgt93-formation-landing__families {
  background: var(--fsgt93-formation-cream);
}

.fsgt93-formation-landing__section-heading {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 5vw, 58px);
}

.fsgt93-formation-landing__section-heading > p {
  max-width: 44ch;
  margin-bottom: 4px;
  color: #536d89;
  line-height: 1.55;
}

.fsgt93-formation-families {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(14, 44, 79, 0.2);
  list-style: none;
}

.fsgt93-formation-families > li {
  margin: 0;
  border-bottom: 1px solid rgba(14, 44, 79, 0.2);
}

.fsgt93-formation-families > li:nth-child(odd) {
  border-right: 1px solid rgba(14, 44, 79, 0.2);
}

.fsgt93-formation-family {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  min-height: 100%;
  padding: clamp(24px, 3vw, 38px);
  color: var(--fsgt93-formation-navy) !important;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.fsgt93-formation-family:hover,
.fsgt93-formation-family:focus-visible {
  background: var(--fsgt93-formation-red);
  color: #fff !important;
}

.fsgt93-formation-family:focus-visible,
.fsgt93-formation-dates a:focus-visible,
.fsgt93-formation-landing__scroll:focus-visible,
.fsgt93-formation-landing__catalog:focus-visible,
.fsgt93-formation-landing__all-dates:focus-visible,
.fsgt93-formation-landing__contact a:focus-visible {
  outline: 3px solid var(--fsgt93-formation-gold);
  outline-offset: 3px;
}

.fsgt93-formation-family__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50% 50% 50% 8px;
  background: var(--fsgt93-formation-gold);
  color: var(--fsgt93-formation-navy);
}

.fsgt93-formation-family__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fsgt93-formation-family__copy {
  display: grid;
  gap: 9px;
}

.fsgt93-formation-family__copy strong {
  font-size: clamp(1.12rem, 1.5vw, 1.36rem);
  line-height: 1.2;
}

.fsgt93-formation-family__copy > span {
  color: #526b86;
  font-size: 0.96rem;
  line-height: 1.55;
  transition: color 180ms ease;
}

.fsgt93-formation-family:hover .fsgt93-formation-family__copy > span,
.fsgt93-formation-family:focus-visible .fsgt93-formation-family__copy > span {
  color: rgba(255, 255, 255, 0.78);
}

.fsgt93-formation-family__arrow {
  color: var(--fsgt93-formation-red);
  font-size: 1.35rem;
  transition: transform 180ms ease, color 180ms ease;
}

.fsgt93-formation-family:hover .fsgt93-formation-family__arrow,
.fsgt93-formation-family:focus-visible .fsgt93-formation-family__arrow {
  color: #fff;
  transform: translateX(5px);
}

.fsgt93-formation-landing__calendar {
  background: #fff;
}

.fsgt93-formation-dates {
  margin: 0;
  padding: 0;
  border-top: 1px solid #c7d5e5;
  list-style: none;
}

.fsgt93-formation-dates li {
  margin: 0;
  border-bottom: 1px solid #c7d5e5;
}

.fsgt93-formation-dates a {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
  padding: 22px 12px;
  color: var(--fsgt93-formation-navy) !important;
  text-decoration: none;
  transition: padding 180ms ease, background-color 180ms ease;
}

.fsgt93-formation-dates a:hover,
.fsgt93-formation-dates a:focus-visible {
  padding-inline: 20px;
  background: #f0f4fc;
}

.fsgt93-formation-dates time {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: baseline;
}

.fsgt93-formation-dates time strong {
  grid-row: span 2;
  color: var(--fsgt93-formation-red);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
}

.fsgt93-formation-dates time span,
.fsgt93-formation-dates time small {
  color: #526b86;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.fsgt93-formation-date__copy {
  display: grid;
  gap: 5px;
}

.fsgt93-formation-date__type {
  color: var(--fsgt93-formation-blue);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fsgt93-formation-date__copy > strong {
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.25;
}

.fsgt93-formation-date__meta {
  color: #637891;
  font-size: 0.9rem;
}

.fsgt93-formation-date__arrow {
  color: var(--fsgt93-formation-red);
  font-size: 1.35rem;
}

.fsgt93-formation-landing__all-dates {
  margin-top: 24px;
  color: var(--fsgt93-formation-red) !important;
}

.fsgt93-formation-landing__all-dates:hover span,
.fsgt93-formation-landing__all-dates:focus-visible span,
.fsgt93-formation-landing__contact a:hover span,
.fsgt93-formation-landing__contact a:focus-visible span {
  transform: translateX(5px);
}

.fsgt93-formation-landing__empty {
  padding: clamp(28px, 4vw, 48px);
  background: #f0f4fc;
  color: #344f6e;
}

.fsgt93-formation-landing__empty p {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.fsgt93-formation-landing__vision {
  grid-template-columns: 60px minmax(230px, 0.78fr) minmax(0, 1.22fr);
  background: var(--fsgt93-formation-navy);
  color: #fff;
}

.fsgt93-formation-landing__vision h2 {
  color: #fff !important;
}

.fsgt93-formation-landing__vision .fsgt93-formation-landing__section-number {
  color: var(--fsgt93-formation-gold);
}

.fsgt93-formation-landing__vision .fsgt93-formation-landing__prose {
  color: rgba(255, 255, 255, 0.78);
}

.fsgt93-formation-landing__vision-lead {
  margin-top: 22px;
  color: var(--fsgt93-formation-gold);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
}

.fsgt93-formation-landing__contact {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  background: var(--fsgt93-formation-gold);
}

.fsgt93-formation-landing__contact .fsgt93-formation-landing__eyebrow {
  margin-bottom: 14px;
  color: var(--fsgt93-formation-red);
}

.fsgt93-formation-landing__contact h2 {
  color: var(--fsgt93-formation-navy) !important;
}

.fsgt93-formation-landing__contact p {
  margin-bottom: 16px;
  color: #253f5f;
  font-size: 1.06rem;
  line-height: 1.65;
}

.fsgt93-formation-landing__contact a {
  color: var(--fsgt93-formation-navy) !important;
}

/* Single formation: reusable next-date block. */
.fsgt93-formation-related-dates {
  display: grid;
  gap: 18px;
}

.fsgt93-formation-related-dates .fsgt93-formation-dates {
  margin-top: 4px;
}

@keyframes fsgt93-formation-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .fsgt93-formation-landing__hero-inner {
    width: 84%;
  }

  .fsgt93-formation-family {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 15px;
  }

  .fsgt93-formation-family__icon {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 820px) {
  .fsgt93-formation-landing__intro,
  .fsgt93-formation-landing__vision,
  .fsgt93-formation-landing__contact {
    grid-template-columns: 1fr;
  }

  .fsgt93-formation-landing__vision {
    gap: 22px;
  }

  .fsgt93-formation-families {
    grid-template-columns: 1fr;
  }

  .fsgt93-formation-families > li:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .fsgt93-formation-landing {
    border-radius: 12px 12px 12px 0;
  }

  .fsgt93-formation-landing__hero {
    min-height: min(650px, calc(100svh - 30px));
  }

  .fsgt93-formation-landing__hero-inner {
    width: 100%;
    padding: 42px 24px 72px;
  }

  .fsgt93-formation-landing__hero h1 {
    font-size: clamp(3rem, 17vw, 4.7rem) !important;
  }

  .fsgt93-formation-landing__hero::before {
    right: -36%;
    bottom: -20%;
    width: 88vw;
  }

  .fsgt93-formation-landing__hero::after {
    right: -20%;
    width: 62vw;
  }

  .fsgt93-formation-landing__intro,
  .fsgt93-formation-landing__families,
  .fsgt93-formation-landing__calendar,
  .fsgt93-formation-landing__vision,
  .fsgt93-formation-landing__contact {
    padding: 40px 22px;
  }

  .fsgt93-formation-landing__section-heading {
    display: grid;
    align-items: start;
  }

  .fsgt93-formation-family {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 24px 4px;
  }

  .fsgt93-formation-family__icon {
    width: 48px;
    height: 48px;
  }

  .fsgt93-formation-family__icon svg {
    width: 27px;
    height: 27px;
  }

  .fsgt93-formation-dates a {
    grid-template-columns: 78px minmax(0, 1fr);
    padding-inline: 0;
  }

  .fsgt93-formation-date__arrow {
    display: none;
  }

  .fsgt93-formation-dates a:hover,
  .fsgt93-formation-dates a:focus-visible {
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fsgt93-formation-landing__hero-inner {
    animation: none;
  }

  .fsgt93-formation-family,
  .fsgt93-formation-family__arrow,
  .fsgt93-formation-landing__scroll span,
  .fsgt93-formation-landing__all-dates span,
  .fsgt93-formation-landing__contact a span,
  .fsgt93-formation-dates a {
    transition: none;
  }
}
