/* For Youth card rows and calls to action. */
.nysa-youth-cards.et_pb_row {
  display: grid;
  align-items: stretch;
  gap: clamp(24px, 4vw, 48px);
}
.nysa-youth-primary.et_pb_row,
.nysa-youth-opportunities.et_pb_row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nysa-youth-cards > .et_pb_column {
  margin: 0;
  width: 100%;
  min-width: 0;
}
.nysa-youth-cards > .et_pb_column,
.nysa-youth-cards .et_pb_group,
.nysa-youth-cards .et_pb_blurb,
.nysa-youth-cards .et_pb_blurb_content,
.nysa-youth-cards .et_pb_blurb_container,
.nysa-youth-cards .et_pb_blurb_description {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nysa-youth-cards .et_pb_group,
.nysa-youth-cards .et_pb_blurb,
.nysa-youth-cards .et_pb_blurb_content,
.nysa-youth-cards .et_pb_blurb_container,
.nysa-youth-cards .et_pb_blurb_description {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
}
.nysa-youth-cards .et_pb_blurb_content {
  text-align: left;
}
.nysa-youth-cards .et_pb_main_blurb_image {
  width: 100%;
  margin-bottom: 20px;
}
.nysa-youth-cards .et_pb_main_blurb_image a,
.nysa-youth-cards .et_pb_main_blurb_image .et_pb_image_wrap,
.nysa-youth-cards .et_pb_main_blurb_image img {
  display: block;
  width: 100%;
  max-width: none;
}
.nysa-youth-cards .et_pb_main_blurb_image img {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}
.nysa-youth-cards .et_pb_module_header a {
  color: inherit;
}
.nysa-youth-opportunities .et_pb_blurb_description p:last-child {
  margin-top: auto;
  padding-top: 12px;
}
.nysa-youth-opportunities .et_pb_blurb_description p:last-child a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.nysa-youth-primary .et_pb_button_module_wrapper {
  margin-top: auto;
}
.nysa-youth-cards a:focus-visible,
.nysa-youth-cta a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.nysa-youth-cta.et_pb_section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(32px, 5vw, 64px);
}
.nysa-youth-cta > .et_pb_row {
  padding-block: 0;
}
.nysa-youth-cta .et_pb_column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(24px, 6vw, 86px);
  row-gap: 12px;
}
.nysa-youth-cta :is(.et_pb_heading, .et_pb_text) {
  grid-column: 1;
  margin: 0;
  max-width: 65ch;
}
.nysa-youth-cta .et_pb_button_module_wrapper {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}
.nysa-youth-resources.et_pb_section {
  background-color: #1a3a5c !important;
  color: #fff;
}
.nysa-youth-resources :is(.et_pb_heading h2, .et_pb_text, .et_pb_text p) {
  color: #fff !important;
}
.nysa-youth-resources .et_pb_button:focus-visible {
  outline-color: #fff;
}
.nysa-youth-start.et_pb_section {
  background: radial-gradient(ellipse at 9% 100%, #ffd3ac, #fff2e4 33%, #eef3f8 78%) !important;
}
@media (max-width: 900px) {
  .nysa-youth-cta .et_pb_column {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .nysa-youth-cta .et_pb_button_module_wrapper {
    grid-column: 1;
    grid-row: auto;
    margin-top: 6px;
  }
}
@media (max-width: 767px) {
  .nysa-youth-cards.et_pb_row {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .nysa-youth-cards .et_pb_main_blurb_image img {
    aspect-ratio: 16 / 10;
  }
  .nysa-youth-cards .et_pb_main_blurb_image {
    margin-bottom: 14px;
  }
  .nysa-youth-primary > .et_pb_column {
    row-gap: 14px;
  }
}

.nysa-youth-cards .et_pb_module_header {
  font-size: clamp(1.25rem, 1.05rem + .55vw, 1.5rem);
  line-height: 1.2;
}
.nysa-youth-start .et_pb_button {
  background-color: #1a3a5c !important;
  border-color: #1a3a5c !important;
  color: #fff !important;
  border-radius: 10px !important;
}
.nysa-youth-start .et_pb_button:hover {
  background-color: #122b45 !important;
}
@media (max-width: 767px) {
  .nysa-youth-cards .et_pb_main_blurb_image {
    margin-bottom: 14px !important;
  }
  .nysa-youth-cards .et_pb_blurb_description p {
    padding-bottom: .6em;
  }
  .nysa-youth-cta .et_pb_text p {
    padding-bottom: 0;
  }
  .nysa-youth-cta > .et_pb_row .et_pb_column {
    row-gap: 14px;
  }
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('./DMSerifDisplay-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Match the homepage hero proportions and keep the text in the left half. */
.nysa-youth-hero.et_pb_section {
  min-height: clamp(36rem, 56vw, 48rem);
  padding: clamp(136px, 12vw, 172px) 0 clamp(56px, 6vw, 88px) !important;
  background-color: #1a3a5c;
}
.nysa-youth-hero > .et_pb_row {
  width: calc(100% - 96px);
  max-width: 1200px;
  padding: 0;
}
.nysa-youth-hero > .et_pb_row > .et_pb_column:first-child {
  width: 100%;
  flex-basis: auto;
  flex-grow: 0;
  max-width: min(640px, 52%);
  row-gap: 24px;
}
.nysa-youth-hero .et_pb_text {
  max-width: 540px;
}
.nysa-youth-hero :is(h1, .et_pb_text, .et_pb_text p, nav, nav a, nav span) {
  color: #fff;
}
.nysa-youth-hero nav a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.nysa-youth-hero nav a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .nysa-youth-hero.et_pb_section {
    min-height: 560px;
    padding: 136px 0 64px !important;
  }
  .nysa-youth-hero > .et_pb_row {
    width: calc(100% - 56px);
  }
}
@media (max-width: 767px) {
  .nysa-youth-hero > .et_pb_row {
    width: calc(100% - 44px);
  }
  .nysa-youth-hero > .et_pb_row > .et_pb_column:first-child {
    max-width: 640px;
    row-gap: 22px;
  }
  .nysa-youth-hero > .et_pb_row > .et_pb_column:last-child:empty {
    display: none;
  }
}
@media (max-width: 480px) {
  .nysa-youth-hero.et_pb_section {
    min-height: 0;
    padding: 112px 0 48px !important;
  }
}

/* Apply the homepage's display type and photo treatment to For Youth. */
body.page-id-238633 .nysa-youth-hero.et_pb_section {
  background-image: linear-gradient(90deg, rgb(26 58 92 / 90%), rgb(26 58 92 / 74%) 41%, rgb(26 58 92 / 30%) 76%), var(--youth-hero-photo, none) !important;
  background-position: center, right center !important;
  background-size: cover !important;
  background-repeat: no-repeat;
}
body.page-id-238633 .nysa-youth-hero h1.et_pb_module_header {
  color: #fff;
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: clamp(3.5rem, 1.5rem + 3.5vw, 4.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.nysa-youth-hero .et_pb_text p { padding-bottom: 0; }
@media (max-width: 1100px) {
  body.page-id-238633 .nysa-youth-hero h1.et_pb_module_header {
    font-size: clamp(2.5rem, 5.1vw, 3.5rem) !important;
  }
}
@media (max-width: 767px) {
  body.page-id-238633 .nysa-youth-hero.et_pb_section {
    min-height: 560px;
    padding: 42px 0 clamp(200px, 56vw, 435px) !important;
    background-color: #1a3a5c !important;
    background-image: linear-gradient(180deg, #1a3a5c, rgb(26 58 92 / 28%) 44%, rgb(26 58 92 / 16%)), var(--youth-hero-photo, none) !important;
    background-size: 100% clamp(185px, 56vw, 430px), max(100%, 350px) auto !important;
    background-position: center bottom, right bottom !important;
  }
  .nysa-youth-hero > .et_pb_row > .et_pb_column:first-child {
    max-width: 640px;
  }
  .nysa-youth-hero > .et_pb_row > .et_pb_column:last-child:empty { display: none; }
}
@media (max-width: 480px) {
  body.page-id-238633 .nysa-youth-hero.et_pb_section {
    min-height: 0;
    padding-top: 32px !important;
  }
  body.page-id-238633 .nysa-youth-hero h1.et_pb_module_header {
    font-size: clamp(2rem, 9.5vw, 2.625rem) !important;
  }
}
