/* Embedded Moscow Sans type family */
@font-face {
  font-family: "Moscow Sans";
  src: url("../fonts/MoscowSans-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Moscow Sans";
  src: url("../fonts/MoscowSans-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Moscow Sans";
  src: url("../fonts/MoscowSans-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Moscow Sans";
  src: url("../fonts/MoscowSans-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Moscow Sans";
  src: url("../fonts/MoscowSans-Extrabold.otf") format("opentype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

/* Visual refresh for the four in-person course pages only */
.onsite-page {
  background: #fff;
  padding: 28px 0 76px;
  color: #1b193f;
}
.onsite-shell {
  width: min(1449px, calc(100% - 48px));
  margin: 0 auto;
}
.onsite-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1449/609;
  min-height: 390px;
  max-height: 610px;
  border-radius: 30px;
  margin: 0 0 34px;
  background: #191638;
  box-shadow: 0 14px 34px rgba(27, 24, 67, 0.1);
}
.onsite-hero-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.onsite-hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(23, 21, 57, 0.08) 0%,
    rgba(23, 21, 57, 0) 66%
  );
}
.onsite-hero-content {
  position: absolute;
  left: 4.6%;
  top: 12%;
  width: min(53%, 690px);
  color: #fff;
}
.onsite-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d41124;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 44px;
}
.onsite-eyebrow:before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #d41124;
  box-shadow: 0 0 0 5px rgba(212, 17, 36, 0.14);
}
.onsite-hero h1 {
  font-size: clamp(36px, 4.1vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
  color: #fff;
  max-width: 720px;
}
.onsite-hero h1 span {
  color: #d41124;
}
.onsite-lead {
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.35;
  font-weight: 650;
  color: #fff;
  max-width: 640px;
  margin: 0 0 42px;
}
.onsite-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.onsite-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 23px;
  border-radius: 9px;
  background: #d41124;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}
.onsite-actions .btn.light {
  background: #fff;
  color: #1b193f;
}
.onsite-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 5.2%;
  margin: 0 7% 48px;
}
.onsite-stat {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 112px;
  padding: 16px 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(24, 22, 54, 0.1);
  border: 1px solid rgba(27, 25, 63, 0.035);
}
.onsite-stat-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  background: #fce0e7;
  border-radius: 14px;
}
.onsite-stat-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.onsite-stat small {
  display: block;
  color: #858585;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 650;
  margin-bottom: 6px;
}
.onsite-stat strong {
  display: block;
  color: #555;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 750;
}
.onsite-program {
  border: 1px solid #dedee5;
  border-radius: 15px;
  padding: 28px 30px 30px;
  margin: 0 0 48px;
  background: #fff;
}
.onsite-program h2 {
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #1b193f;
  margin: 0 0 10px;
  font-weight: 800;
}
.onsite-program-intro {
  font-size: 15px;
  line-height: 1.45;
  color: #777;
  margin: 0 0 32px;
  max-width: 1200px;
}
.onsite-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 18px;
}
.onsite-section-head h3 {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2;
  margin: 0;
  color: #1b193f;
  font-weight: 800;
}
.onsite-section-head span {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2;
  color: #d41124;
  font-weight: 800;
  white-space: nowrap;
}
.onsite-modules {
  display: grid;
  gap: 14px;
}
.onsite-module {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 17px 20px 16px;
  border-radius: 13px;
  background: linear-gradient(105deg, #191638 0%, #37316f 72%, #201c49 100%);
  color: #fff;
  min-height: 74px;
}
.onsite-module-num {
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.onsite-module h4 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 5px;
  color: #fff;
  font-weight: 750;
}
.onsite-module p {
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
  color: #fff;
  font-weight: 550;
}
.onsite-audience {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 300px;
  border-radius: 18px;
  margin: 0 0 48px;
  padding: 30px 4.2%;
  display: flex;
  align-items: center;
  background: #fbf0f5 url("../images/onsite/audience-background.png")
    center/100% 100% no-repeat;
  box-shadow: 0 8px 22px rgba(27, 24, 67, 0.04);
}
.onsite-audience-copy {
  position: relative;
  z-index: 2;
  width: 64%;
  max-width: 820px;
}
.onsite-audience h2 {
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #1b193f;
  margin: 0 0 10px;
  font-weight: 800;
}
.onsite-audience p {
  font-size: 16px;
  line-height: 1.45;
  color: #777;
  margin: 0 0 24px;
  max-width: 850px;
}
.onsite-audience-pill {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  max-width: 100%;
  min-height: 86px;
  padding: 14px 28px;
  border-radius: 18px;
  background: rgba(255, 224, 234, 0.86);
  box-shadow: 0 7px 20px rgba(212, 17, 36, 0.08);
  color: #1b193f;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}
.onsite-audience-pill img {
  width: 54px;
  height: 42px;
  object-fit: contain;
  flex: none;
}
.onsite-audience-3d {
  position: absolute;
  z-index: 1;
  width: 34%;
  max-width: 470px;
  max-height: 90%;
  object-fit: contain;
  right: 4.5%;
  bottom: 2%;
}
.onsite-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 250px;
  border-radius: 20px;
  padding: 30px 4.2%;
  color: #fff;
  background: #191638 url("../images/onsite/cta-background.png") center/100%
    100% no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.onsite-cta h2 {
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
  margin: 0 0 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.onsite-cta p {
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 24px;
  max-width: 1100px;
}
.onsite-cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(60%, 780px);
  min-height: 58px;
  border-radius: 999px;
  background: #d41124;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}
.login-icon {
  width: 17px;
  height: 17px;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login {
  gap: 9px;
}
@media (max-width: 900px) {
  .onsite-shell {
    width: min(100% - 32px, 1449px);
  }
  .onsite-hero {
    min-height: 360px;
    aspect-ratio: unset;
    height: 42vw;
  }
  .onsite-hero-content {
    top: 10%;
    width: 57%;
  }
  .onsite-eyebrow {
    margin-bottom: 26px;
  }
  .onsite-lead {
    margin-bottom: 28px;
  }
  .onsite-stats {
    margin-left: 2%;
    margin-right: 2%;
    gap: 16px;
  }
  .onsite-stat {
    padding: 14px 16px;
    gap: 15px;
    min-height: 90px;
  }
  .onsite-stat-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }
  .onsite-stat-icon img {
    width: 32px;
    height: 32px;
  }
  .onsite-stat strong {
    font-size: 17px;
  }
  .onsite-audience {
    min-height: 250px;
  }
  .onsite-audience-copy {
    width: 66%;
  }
  .onsite-audience-3d {
    width: 34%;
  }
}
@media (max-width: 600px) {
  .onsite-page {
    padding: 18px 0 48px;
  }
  .onsite-shell {
    width: calc(100% - 24px);
  }
  .onsite-hero {
    height: auto;
    min-height: 510px;
    aspect-ratio: unset;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
  }
  .onsite-hero-bg {
    object-position: 60% center;
  }
  .onsite-hero:after {
    background: linear-gradient(
      180deg,
      rgba(23, 21, 57, 0.12),
      rgba(23, 21, 57, 0.08) 52%,
      rgba(23, 21, 57, 0)
    );
  }
  .onsite-hero-content {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding: 28px 24px;
  }
  .onsite-eyebrow {
    font-size: 12px;
    margin-bottom: 34px;
  }
  .onsite-hero h1 {
    font-size: 38px;
    max-width: 100%;
    margin-bottom: 14px;
  }
  .onsite-lead {
    font-size: 15px;
    max-width: 90%;
    margin-bottom: 25px;
  }
  .onsite-actions {
    gap: 9px;
  }
  .onsite-actions .btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 12px;
  }
  .onsite-stats {
    grid-template-columns: 1fr;
    margin: 0 0 28px;
    gap: 12px;
  }
  .onsite-stat {
    min-height: 82px;
    padding: 12px 16px;
  }
  .onsite-stat-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
  .onsite-program {
    padding: 22px 16px;
    margin-bottom: 28px;
  }
  .onsite-program h2 {
    font-size: 32px;
  }
  .onsite-program-intro {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .onsite-section-head {
    gap: 8px;
    flex-wrap: wrap;
  }
  .onsite-section-head h3,
  .onsite-section-head span {
    font-size: 19px;
  }
  .onsite-modules {
    gap: 9px;
  }
  .onsite-module {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 12px;
    min-height: 0;
  }
  .onsite-module-num {
    font-size: 20px;
  }
  .onsite-module h4 {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .onsite-module p {
    font-size: 12px;
    line-height: 1.35;
  }
  .onsite-audience {
    min-height: 320px;
    padding: 22px 18px;
    align-items: flex-start;
    background-size: auto 100%;
    background-position: center;
  }
  .onsite-audience-copy {
    width: 100%;
  }
  .onsite-audience h2 {
    font-size: 31px;
  }
  .onsite-audience p {
    font-size: 13px;
    max-width: 100%;
    margin-bottom: 15px;
  }
  .onsite-audience-pill {
    font-size: 16px;
    min-height: 58px;
    padding: 10px 14px;
    gap: 12px;
    max-width: 90%;
  }
  .onsite-audience-pill img {
    width: 36px;
    height: 30px;
  }
  .onsite-audience-3d {
    width: 48%;
    max-height: 48%;
    right: 0;
    bottom: 0;
  }
  .onsite-cta {
    min-height: 230px;
    padding: 24px 18px;
    background-size: auto 100%;
    background-position: center;
  }
  .onsite-cta h2 {
    font-size: 29px;
  }
  .onsite-cta p {
    font-size: 13px;
    margin-bottom: 18px;
    max-width: 80%;
  }
  .onsite-cta .btn {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
  }
}

/* User-requested refinements for the four onsite course pages */
.onsite-site,
.onsite-site * {
  font-family: "Moscow Sans", Arial, sans-serif !important;
}

.onsite-site .onsite-eyebrow {
  color: #d41124;
}
.onsite-site .onsite-eyebrow::before {
  background: #d41124;
  box-shadow: 0 0 0 5px rgba(212, 17, 36, 0.14);
}
.onsite-site .onsite-hero h1 span {
  color: #d41124;
}
.onsite-site .onsite-actions .btn:not(.light),
.onsite-site .onsite-cta .btn {
  background: #d41124;
}
.onsite-site .onsite-section-head span {
  color: #d41124;
}

/* The artwork already contains its own rounded shape; remove the visible backing frame. */
.onsite-site .onsite-audience {
  background-color: transparent;
  box-shadow: none;
}
.onsite-site .onsite-cta {
  background-color: transparent;
}

/* Final alignment refinements shared by all four in-person course pages */
.onsite-site .onsite-shell > .onsite-hero,
.onsite-site .onsite-shell > .onsite-stats,
.onsite-site .onsite-shell > .onsite-program,
.onsite-site .onsite-shell > .onsite-audience,
.onsite-site .onsite-shell > .onsite-cta {
  width: 100%;
  box-sizing: border-box;
}

.onsite-site .onsite-stats {
  margin-left: 0;
  margin-right: 0;
}

.onsite-site .onsite-section-head {
  align-items: center;
  column-gap: 0;
}

.onsite-site .onsite-section-head h3 {
  padding-right: 14px;
  border-right: 1px solid currentColor;
}

.onsite-site .onsite-section-head span {
  margin-left: 14px;
}

/* Keep the hero artwork at the exact proportions of the supplied 1449 × 609 mockups. */
@media (min-width: 901px) {
  .onsite-site .onsite-hero {
    aspect-ratio: 1449 / 609;
  }
}

/* Strict shared width: every main content block follows the hero image edges. */
.onsite-site .onsite-shell {
  width: min(1449px, calc(100vw - 48px)) !important;
  max-width: 1449px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.onsite-site .onsite-shell > .onsite-hero,
.onsite-site .onsite-shell > .onsite-stats,
.onsite-site .onsite-shell > .onsite-program,
.onsite-site .onsite-shell > .onsite-audience,
.onsite-site .onsite-shell > .onsite-cta {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
.onsite-site .onsite-stats {
  display: grid !important;
}
@media (max-width: 600px) {
  .onsite-site .onsite-shell {
    width: calc(100vw - 24px) !important;
  }
}

/* Final fix: audience and CTA artwork itself fills the complete section box. */
.onsite-site .onsite-audience,
.onsite-site .onsite-cta {
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: none !important;
  overflow: hidden !important;
}

.onsite-site .onsite-audience {
  padding: 30px 4.2% !important;
  align-items: center !important;
}

.onsite-site .onsite-cta {
  padding: 30px 4.2% !important;
  flex-direction: column !important;
  justify-content: center !important;
  color: #fff;
}

.onsite-site .onsite-audience::before,
.onsite-site .onsite-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.onsite-site .onsite-audience::before {
  background-image: url("../images/onsite/audience-background.png");
}

.onsite-site .onsite-cta::before {
  background-image: url("../images/onsite/cta-background.png");
}

@media (max-width: 600px) {
  .onsite-site .onsite-audience {
    padding: 22px 18px !important;
  }
  .onsite-site .onsite-cta {
    padding: 24px 18px !important;
  }
}

/* Rebuilt audience and CTA sections: one section = one full-width background. */
.onsite-site .onsite-shell > section.onsite-audience,
.onsite-site .onsite-shell > section.onsite-cta {
  display: flex !important;
  position: relative !important;
  float: none !important;
  clear: both !important;
  flex: 0 0 100% !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 48px 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: hidden !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
}

/* Audience: the supplied pink artwork is the section's actual background. */
.onsite-site .onsite-shell > section.onsite-audience {
  min-height: 300px !important;
  padding: 30px 4.2% !important;
  align-items: center !important;
  background-color: #f9eaf2 !important;
  background-image: url("../images/onsite/audience-background.png") !important;
}

/* CTA: the supplied dark artwork is the section's actual background. */
.onsite-site .onsite-shell > section.onsite-cta {
  min-height: 250px !important;
  padding: 30px 4.2% !important;
  flex-direction: column !important;
  justify-content: center !important;
  color: #fff !important;
  background-color: #191638 !important;
  background-image: url("../images/onsite/cta-background.png") !important;
}

/* Remove all pseudo-element framing; the background belongs to the section itself. */
.onsite-site .onsite-shell > section.onsite-audience::before,
.onsite-site .onsite-shell > section.onsite-cta::before {
  content: none !important;
  display: none !important;
}

@media (max-width: 600px) {
  .onsite-site .onsite-shell > section.onsite-audience {
    min-height: 320px !important;
    padding: 22px 18px !important;
    align-items: flex-start !important;
    background-size: auto 100% !important;
  }
  .onsite-site .onsite-shell > section.onsite-cta {
    min-height: 230px !important;
    padding: 24px 18px !important;
    background-size: auto 100% !important;
  }
}

/* Hero typography and controls scaled to match the supplied reference screenshots. */
@media (min-width: 901px) {
  .onsite-site .onsite-hero {
    aspect-ratio: 1449 / 609 !important;
  }
  .onsite-site .onsite-hero-content {
    left: 4.2% !important;
    top: 12% !important;
    width: 62% !important;
    max-width: 800px !important;
  }
  .onsite-site .onsite-eyebrow {
    font-size: 16px !important;
    gap: 13px !important;
    margin-bottom: 42px !important;
  }
  .onsite-site .onsite-eyebrow::before {
    width: 14px !important;
    height: 14px !important;
  }
  .onsite-site .onsite-hero h1 {
    font-size: clamp(42px, 4.5vw, 68px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.035em !important;
    max-width: 100% !important;
    margin-bottom: 18px !important;
  }
  .onsite-site .onsite-lead {
    font-size: clamp(17px, 1.35vw, 21px) !important;
    line-height: 1.35 !important;
    max-width: 760px !important;
    margin-bottom: 40px !important;
  }
  .onsite-site .onsite-actions {
    gap: 16px !important;
  }
  .onsite-site .onsite-actions .btn {
    min-height: 52px !important;
    padding: 0 26px !important;
    font-size: 15px !important;
    border-radius: 9px !important;
  }
}

/* The reference layout keeps this title on two lines, not three. */
@media (min-width: 901px) {
  .onsite-site .onsite-hero h1 {
    text-wrap: pretty;
  }
}

/* Larger hero CTAs, lowered to match the Figma reference placement. */
@media (min-width: 901px) {
  .onsite-site .onsite-hero .onsite-actions {
    margin-top: 34px !important;
    gap: 18px !important;
  }
  .onsite-site .onsite-hero .onsite-actions .btn {
    min-height: 64px !important;
    padding: 0 34px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    border-radius: 10px !important;
  }
}

/* Back-to-catalog link, matching the other direction pages. */
.onsite-site .onsite-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b6d80;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  margin: 6px 0 22px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.onsite-site .onsite-back:hover {
  color: #d41124;
  transform: translateX(-2px);
}

/* Increase breathing room between the hero description and CTA buttons on all four in-person pages. */
@media (min-width: 901px) {
  .onsite-site .onsite-hero .onsite-actions {
    margin-top: 68px !important;
  }
}
@media (max-width: 900px) {
  .onsite-site .onsite-hero .onsite-actions {
    margin-top: 18px !important;
  }
}
