/*
 * Louisville landing page.
 * Applies when the body has class "louisville". Section rules use the
 * existing block classes, so the page does not need anchor ids.
 *
 * Centered Text Columns is used for several blocks. They are told apart
 * by how many columns they have and whether those columns contain a link:
 * - 3 or 4 columns with a link: meeting options
 * - 3 or 4 columns without a link: opening timeline
 * - 5 or more columns: enrollment journey
 * - exactly 2 columns: mobile contact bar
 */

body.louisville { margin: 0; }

body.louisville .cms-section-label { display: none; }

body.louisville .content-block { position: relative; }

body.louisville .content-block,
body.louisville.landing-page .content-block {
  margin-bottom: 0;
}

html.file-preview img {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

html.file-preview img.with-mask { border-radius: 2rem !important; }

/* Compact sticky header with persistent desktop conversion actions */
body.louisville .location-bar {
  position: sticky;
  top: 0;
  z-index: 130;
  height: 2.4rem;
}

body.louisville nav.main {
  position: sticky;
  top: 2.4rem;
  z-index: 120;
  background: #fff;
}

body.louisville nav.main .navbar-logo {
  width: auto;
  max-width: 168px;
  padding: .35rem 0;
}

body.louisville nav.main .navbar-logo img {
  width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

body.louisville .desktop-conversion { display: none; }

/* Split hero */
body.louisville .video-and-text.hero {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  background: linear-gradient(115deg, #fff 0 58%, #eff8f9 58% 100%);
}

body.louisville .video-and-text.hero .text { position: relative; z-index: 2; }

body.louisville .video-and-text.hero .text p { margin-bottom: .7rem; }

body.louisville .video-and-text.hero .opening-line {
  display: inline-block;
  margin-bottom: .7rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  color: #6b4125;
  background: #eaf0b8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.louisville .video-and-text.hero .section-title {
  max-width: 640px;
  margin-bottom: .7rem;
  font-size: clamp(1.85rem, 2.5vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}

body.louisville .video-and-text.hero .personal-note {
  padding-left: .85rem;
  border-left: 4px solid #e272ac;
}

body.louisville .video-and-text.hero .text > p:last-of-type:has(> a),
body.louisville .video-and-text.hero .text > div {
  display: inline-block;
  margin-top: .35rem;
  vertical-align: top;
}

body.louisville .video-and-text.hero .text > p:last-of-type:has(> a) {
  margin-right: .65rem;
  margin-bottom: 0;
}

body.louisville .video-and-text.hero .text > p:last-of-type:has(> a) a,
body.louisville .video-and-text.hero .text > div .button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.1rem;
  border-radius: .7rem;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

body.louisville .video-and-text.hero .text > p:last-of-type:has(> a) a {
  color: #292d1d;
  background: #cede54;
}

body.louisville .video-and-text.hero .text > div .button {
  margin: 0;
  border: 2px solid #6b4125;
  color: #6b4125;
  background: #fff;
  text-transform: none;
}

body.louisville .video-and-text.hero .text > div .button:not(.secondary-cta) {
  border: 0;
  color: #292d1d;
  background: #cede54;
}

body.louisville .video-and-text.hero .video { position: relative; }

body.louisville .video-and-text.hero .video img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter: drop-shadow(0 18px 24px rgba(70, 52, 40, .14));
}

body.louisville .video-and-text.hero .rendering-label {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  color: #6b4125;
  background: rgba(255, 255, 255, .93);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.louisville .video-and-text.hero .director-inset {
  position: absolute;
  z-index: 3;
  right: -.5rem;
  bottom: -1.25rem;
  display: flex;
  width: 17rem;
  align-items: center;
  gap: .75rem;
  padding: .65rem;
  border: 4px solid #fff;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(60, 43, 31, .16);
  text-align: left;
}

body.louisville .video-and-text.hero .director-inset img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: .75rem;
  object-fit: cover;
  object-position: center top;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}

body.louisville .video-and-text.hero .director-inset strong { display: block; color: #6b4125; }

body.louisville .video-and-text.hero .director-inset span {
  display: block;
  font-size: .76rem;
  line-height: 1.25;
}

body.louisville .icon-cards .qualification-note {
  max-width: 900px;
  margin: 1rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: .8rem;
  color: #6b4125;
  background: #eaf0b8;
  font-weight: 700;
  text-align: center;
}

body.louisville .image-and-bio { background: #eff8f9; margin-bottom: 0;}

body.louisville .image-and-bio .text p { margin-bottom: 1.25rem; }

body.louisville .image-and-bio .text a[href^="tel:"],
body.louisville .image-and-bio .text a[href^="mailto:"] {
  display: inline-block;
  margin: .25rem .35rem .25rem 0;
  padding: .65rem 1rem;
  border-radius: .55rem;
  color: #fff;
  background: #167f80;
  font-weight: 800;
  text-decoration: none;
}

body.louisville .image-and-bio .text a[href^="mailto:"] {
  border: 2px solid #6b4125;
  color: #6b4125;
  background: #fff;
}

/* Meeting options: 3 or 4 linked columns */
body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .columns {
  display: grid;
  gap: .75rem;
  align-items: stretch;
  margin: 3rem auto 0;
}

body.louisville .three-column-text:has(.cta a):has(.column:nth-child(3):last-child) .columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.louisville .three-column-text:has(.cta a):has(.column:nth-child(4):last-child) .columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .column {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  width: auto;
  margin: 0;
  padding: 1.5rem 1.1rem;
  border-top: 6px solid #46c1c0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 1.25rem;
  background: #f7fbfb;
}

body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .column:nth-child(2) { border-color: #9b7eb9; background: #faf8fc; }

body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .column:nth-child(3) { border-color: #ffb259; background: #fff9f2; }

body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .column:nth-child(4) { border-color: #e272ac; background: #fff7fb; }

body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .cta {
  display: flex;
  justify-content: center;
  padding: 0;
}

body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .column p {
  flex-grow: 1;
  margin: .75rem 0 1rem;
  padding: 0;
}

body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .img-wrap:not(:has(img)) {
  display: none;
}

body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .cta a {
  width: auto;
  padding: 1rem 0 0;
  text-align: center;
  text-decoration: underline;
  text-transform: uppercase;
}

body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) a[href^="tel:"] {
  display: block;
  margin-top: .35rem;
  color: #167f80;
  font-weight: 800;
  text-align: center;
}

/* Opening timeline: 3 or 4 columns and no link */
body.louisville .three-column-text:not(:has(.cta a)):has(.column:nth-child(3)):not(:has(.column:nth-child(5))) .columns {
  display: grid;
  gap: 1.5rem;
  margin: 3rem auto 0;
}

body.louisville .three-column-text:not(:has(.cta a)):has(.column:nth-child(3):last-child) .columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.louisville .three-column-text:not(:has(.cta a)):has(.column:nth-child(4):last-child) .columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.louisville .three-column-text:not(:has(.cta a)):has(.column:nth-child(3)):not(:has(.column:nth-child(5))) .column {
  position: relative;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  border: 0;
  padding: 0 1rem;
}

body.louisville .three-column-text:not(:has(.cta a)):has(.column:nth-child(3)):not(:has(.column:nth-child(5))) .column p {
  margin: .35rem 0 0;
  padding: 0;
}

body.louisville .three-column-text:not(:has(.cta a)):has(.column:nth-child(3)):not(:has(.column:nth-child(5))) .cta:not(:has(a)) {
  display: none;
}

body.louisville .three-column-text:not(:has(.cta a)):has(.column:nth-child(3)):not(:has(.column:nth-child(5))) .column h3::before {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #167f80;
  content: "✓";
}

body.louisville .centered-text {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  background: #6b4125;
}

body.louisville .simple-text.purple {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  background: #9b7eb9;
}

body.louisville .content-block.teal { background: #46c1c0; }

body.louisville .content-block.pink { background: #e272ac; }

body.louisville .content-block.light-pink { background: #fbe7f3; }

body.louisville .content-block.green { background: #cede54; }

body.louisville .content-block.spring { background: #f6f8e3; }

body.louisville .content-block.orange { background: #ffb259; }

body.louisville .content-block.sky { background: #ecfdff; }

body.louisville .content-block.white { background: #fff; }

body.louisville .centered-text .section-title,
body.louisville .centered-text .subtitle,
body.louisville .centered-text p,
body.louisville .simple-text.purple .section-title,
body.louisville .simple-text.purple .subtitle,
body.louisville .simple-text.purple p,
body.louisville .content-block.teal .section-title,
body.louisville .content-block.teal .subtitle,
body.louisville .content-block.teal p,
body.louisville .content-block.pink .section-title,
body.louisville .content-block.pink .subtitle,
body.louisville .content-block.pink p { color: #fff; }

body.louisville .centered-text strong,
body.louisville .simple-text.purple strong { color: #cede54; }

body.louisville .icon-cards { margin-top: 0; }

/* Enrollment journey: 5 or more columns */
body.louisville .three-column-text:has(.column:nth-child(5)) .columns {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 3rem;
  counter-reset: step;
}

body.louisville .three-column-text:has(.column:nth-child(5)) .column {
  position: relative;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 3.4rem .7rem 1rem;
  border: 0;
  border-radius: .9rem;
  background: #eff8f9;
}

body.louisville .three-column-text:has(.column:nth-child(5)) .column::before {
  position: absolute;
  top: .8rem;
  left: calc(50% - 1rem);
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #167f80;
  content: counter(step);
  counter-increment: step;
  font-weight: 800;
}

body.louisville .three-column-text:has(.column:nth-child(5)) .column:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 3.3rem;
  right: -.75rem;
  color: #e272ac;
  content: "→";
  font-size: 1.25rem;
  font-weight: 800;
}

body.louisville .three-column-text:has(.column:nth-child(5)) .column h3 { font-size: .93rem; }

body.louisville .three-column-text:has(.column:nth-child(5)) .column p { display: none; }

body.louisville .three-column-text:has(.column:nth-child(5)) .enrollment-note {
  max-width: 850px;
  margin: 1.5rem auto 0;
  text-align: center;
}

body.louisville .faq-list { margin-top: 0; background: #fffaf3; }

body.louisville .contact-form { margin: 0; background: #eff8f9; }

body.louisville .contact-form .form-wrap {
  padding: 2rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 12px 35px rgba(70, 52, 40, .1);
}

body.louisville .contact-form .field-label,
body.louisville .contact-form .freeform-label {
  display: block;
  margin-bottom: .35rem;
  color: #6b4125;
  font-size: .82rem;
  font-weight: 800;
  text-align: left;
}

body.louisville .contact-form .freeform-row {
  display: flex;
  gap: 1rem;
  margin-bottom: .85rem;
}

body.louisville .contact-form .freeform-column { flex: 1; }

body.louisville .contact-form textarea.input { min-height: 7rem; }

body.louisville .contact-form .checkbox {
  font-weight: 500;
  text-align: left;
  text-transform: none;
}

body.louisville .three-column-text:has(.column:last-child:nth-child(2)) { display: none; }

body.louisville .mock-footer {
  padding: 4rem 0;
  color: #fff;
  background: #46c1c0;
}

body.louisville .mock-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

body.louisville .mock-footer img {
  width: 180px;
  filter: brightness(0) invert(1);
}

body.louisville .mock-footer p {
  margin: 0;
  color: #fff;
  text-align: right;
}

@media screen and (min-width: 769px) and (max-height: 800px) {
  body.louisville .video-and-text.hero .video img { max-height: 390px; }

  body.louisville .video-and-text.hero .director-inset {
    width: 15rem;
    bottom: .25rem;
  }
}

@media screen and (min-width: 769px) {
  body.louisville .desktop-conversion {
    display: flex;
    align-items: center;
    gap: .6rem;
  }

  body.louisville .desktop-conversion a {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: .4rem 1rem;
    border-radius: .6rem;
    font-weight: 800;
    text-decoration: none;
  }

  body.louisville .desktop-conversion a[href^="tel:"] {
    border: 2px solid #6b4125;
    color: #6b4125;
    background: #fff;
  }

  body.louisville .desktop-conversion a:not([href^="tel:"]) {
    color: #292d1d;
    background: #cede54;
  }
}

@media screen and (max-width: 1023px) {
  body.louisville .video-and-text.hero .container { flex-direction: column; }

  body.louisville .video-and-text.hero .text,
  body.louisville .video-and-text.hero .video { width: 100%; }

  body.louisville .video-and-text.hero .video { margin-top: 2rem; }

  body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .columns { grid-template-columns: 1fr 1fr; }

  body.louisville .three-column-text:has(.column:nth-child(5)) .columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  body.louisville .three-column-text:has(.column:nth-child(5)) .column:nth-child(4)::after { display: none; }
}

@media screen and (max-width: 768px) {
  body.louisville { padding-bottom: 6.5rem; }

  body.louisville .content-block {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  body.louisville .section-title {
    font-size: 1.65rem;
    line-height: 1.2;
  }

  body.louisville .icon-cards h2,
  body.louisville .icon-cards .section-content { width: 100%; }

  body.louisville .icon-cards .section-title { margin-bottom: 1.25rem; }

  body.louisville .map-and-directions .map img,
  body.louisville .map-and-directions .map iframe {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  body.louisville .icon-cards .section-content { margin-bottom: 1.25rem; }

  body.louisville .video-and-text.hero {
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
    background: linear-gradient(180deg, #fff 0 75%, #eff8f9 75% 100%);
  }

  body.louisville .video-and-text.hero .text { margin-top: 0; }

  body.louisville .video-and-text.hero .section-title { font-size: 2rem; }

  body.louisville .video-and-text.hero .text > p:last-of-type:has(> a),
  body.louisville .video-and-text.hero .text > div { display: block; margin: .7rem 0 0; }

  body.louisville .video-and-text.hero .text > p:last-of-type:has(> a) a,
  body.louisville .video-and-text.hero .text > div .button { width: 100%; }

  body.louisville .video-and-text.hero .director-inset { right: 0; width: 15rem; }

  body.louisville .icon-cards .icon-card { padding: .4rem 0; }

  body.louisville .icon-cards .card-wrap {
    flex-direction: row;
    align-items: center;
    padding: .9rem 1rem;
  }

  body.louisville .icon-cards .icon {
    width: 3.1rem;
    height: 3.1rem;
  }

  body.louisville .icon-cards .content { padding-left: .85rem; }

  body.louisville .icon-cards .content h3 { margin-bottom: .2rem; font-size: 1rem; }

  body.louisville .icon-cards .content p { margin-bottom: 0; font-size: .92rem; }

  body.louisville .three-column-text .columns,
  body.louisville .icon-cards .columns,
  body.louisville .text-and-image-columns .columns {
    display: block;
    padding-bottom: 0;
    overflow: visible;
  }

  body.louisville .three-column-text .column,
  body.louisville .icon-cards .column,
  body.louisville .text-and-image-columns .column {
    width: 100%;
    margin: 0 0 .75rem;
  }

  body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .columns { grid-template-columns: 1fr; }

  body.louisville .three-column-text:has(.cta a):not(:has(.column:nth-child(5))):not(:has(.column:last-child:nth-child(2))) .column {
    display: block;
    grid-row: auto;
    padding: 1.1rem 1rem;
  }

  body.louisville .three-column-text:not(:has(.cta a)):has(.column:nth-child(3)):not(:has(.column:nth-child(5))) .columns { grid-template-columns: 1fr; }

  body.louisville .three-column-text:not(:has(.cta a)):has(.column:nth-child(3)):not(:has(.column:nth-child(5))) .column {
    display: block;
    grid-row: auto;
    grid-template-rows: none;
  }

  body.louisville .three-column-text:has(.column:nth-child(5)) .columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    margin-top: 1.25rem;
    padding-bottom: 0;
    overflow: visible;
  }

  body.louisville .three-column-text:has(.column:nth-child(5)) .column {
    min-height: 0;
    padding: 3.4rem .5rem .75rem;
  }

  body.louisville .three-column-text:has(.column:nth-child(5)) .column h3 { margin-top: 0; }

  body.louisville .three-column-text:has(.column:nth-child(5)) .column h3 {
    margin-bottom: 0;
    font-size: .8rem;
  }

  body.louisville .three-column-text:has(.column:nth-child(5)) .column:not(:last-child)::after { display: none; }

  body.louisville .three-column-text:has(.column:nth-child(5)) .enrollment-note { margin-top: 1rem; }

  body.louisville .contact-form .freeform-row { flex-direction: column; gap: .15rem; }

  body.louisville .three-column-text:has(.column:last-child:nth-child(2)) {
    position: fixed;
    z-index: 140;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 -8px 25px rgba(46, 35, 27, .13);
  }

  body.louisville .three-column-text:has(.column:last-child:nth-child(2)) > .container { width: 100%; max-width: none; }

  body.louisville .three-column-text:has(.column:last-child:nth-child(2)) .section-title { display: none; }

  body.louisville .three-column-text:has(.column:last-child:nth-child(2)) .columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
  }

  body.louisville .three-column-text:has(.column:last-child:nth-child(2)) .column { margin: 0; padding: 0; border: 0; }

  body.louisville .three-column-text:has(.column:last-child:nth-child(2)) .column h3,
  body.louisville .three-column-text:has(.column:last-child:nth-child(2)) .column > p,
  body.louisville .three-column-text:has(.column:last-child:nth-child(2)) .img-wrap { display: none; }

  body.louisville .three-column-text:has(.column:last-child:nth-child(2)) .cta { display: block; margin: 0; padding: 0; }

  body.louisville .three-column-text:has(.column:last-child:nth-child(2)) .cta a {
    display: flex;
    width: 100%;
    height: 4.3rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #6b4125;
    background: #cede54;
    font-weight: 800;
    text-decoration: none;
  }

  body.louisville .three-column-text:has(.column:last-child:nth-child(2)) .column:last-child .cta a { color: #fff; background: #167f80; }

  body.louisville .mock-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }

  body.louisville .mock-footer p { text-align: left; }
}
