.carousel-control {
    width: 45px;
    height: 45px;
    line-height: 55px;
    border-radius: 45px;
    background: transparent;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

#prev-cover {
    position: absolute;
    top: 48%;
    left: 8px;
}

#next-cover {
    position: absolute;
    top: 48%;
    right: 8px;;
}

#prev-cover i {
    margin-right: 3px;
}

#next-cover i {
    margin-left: 3px;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, .4);
}

.carousel-control i {
    color: #fff;
    font-size: 2.4rem;
}
/* Hero latest updates board. */
.index-cover,
.index-cover .carousel-item,
.index-cover .bg-cover.about-cover {
  width: 100vw !important;
  max-width: none !important;
}

.index-cover {
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.index-cover .bg-cover.about-cover {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}

.index-cover .bg-cover.about-cover:before {
  background: linear-gradient(90deg, rgba(17, 26, 18, 0.38) 0%, rgba(17, 26, 18, 0.16) 52%, rgba(17, 26, 18, 0.04) 100%);
}

.index-cover .bg-cover.about-cover > .container {
  width: 100% !important;
  max-width: none !important;
}

.hero-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 96px);
  padding: clamp(190px, 23vh, 250px) clamp(18px, 5vw, 96px) 54px;
}

.hero-updates {
  width: min(1480px, 94vw);
  text-align: left;
}

.hero-updates-heading {
  display: none;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 10px 18px;
  border: 2px solid rgba(246, 185, 64, 0.92);
  border-radius: 8px;
  background: rgba(255, 251, 239, 0.96);
  color: #17251f;
  box-shadow: 0 10px 24px rgba(17, 26, 18, 0.18);
  font-size: clamp(1.7rem, 2.2vw, 2.55rem);
  font-weight: 900;
  line-height: 1;
}

.hero-updates-heading i {
  color: #c97d0c;
  font-size: 0.7em;
}

.hero-updates-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "left center right";
  gap: clamp(20px, 2.4vw, 34px);
  width: 100%;
}

.hero-update-card:nth-child(1) { grid-area: left; }
.hero-update-card:nth-child(2) { grid-area: center; }
.hero-update-card:nth-child(3) { grid-area: right; }

.hero-update-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(26px, 3vw, 38px);
  border: 2px solid rgba(246, 185, 64, 0.7);
  border-radius: 8px;
  background: rgba(255, 251, 239, 0.95);
  box-shadow: 0 22px 50px rgba(17, 26, 18, 0.34), 0 0 0 5px rgba(246, 185, 64, 0.12);
  backdrop-filter: blur(8px);
}

.hero-update-featured {
  border-color: rgba(246, 185, 64, 1);
  box-shadow: 0 26px 62px rgba(17, 26, 18, 0.42), 0 0 0 6px rgba(246, 185, 64, 0.18);
}

.hero-update-meta {
  margin: 0 0 12px;
  color: #9b6506;
  font-size: clamp(0.94rem, 1.2vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-update-card h2 {
  margin: 0 0 14px;
  color: #17251f;
  font-size: clamp(1.65rem, 2.2vw, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-update-card p:not(.hero-update-meta) {
  margin: 0;
  color: #31463b;
  font-size: clamp(1.06rem, 1.35vw, 1.26rem);
  font-weight: 700;
  line-height: 1.52;
}

.hero-update-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 46px;
  margin-top: auto;
  padding: 0 20px;
  border-radius: 6px;
  background: #f6b940;
  color: #17251f;
  box-shadow: 0 10px 24px rgba(104, 71, 7, 0.24);
  font-weight: 900;
  line-height: 1;
}

.hero-update-card a:hover {
  color: #17251f;
  transform: translateY(-1px);
}


.hero-intro-copy {
  width: min(980px, 100%);
  margin: clamp(18px, 2.4vw, 30px) auto 0;
  padding: clamp(18px, 2.5vw, 28px) clamp(20px, 3vw, 36px);
  border: 1px solid rgba(255, 251, 239, 0.72);
  border-radius: 8px;
  background: rgba(255, 251, 239, 0.9);
  box-shadow: 0 18px 44px rgba(17, 26, 18, 0.28);
  text-align: center;
}

.hero-intro-copy h1 {
  margin: 0 0 10px;
  color: #17251f;
  font-size: clamp(1.6rem, 2.35vw, 2.65rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-intro-copy p {
  margin: 0;
  color: #31463b;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 700;
  line-height: 1.62;
}

@media only screen and (max-width: 760px) {
  .hero-shell {
    align-items: flex-start;
    padding-top: 96px;
  }

  .hero-updates-grid {
    grid-template-columns: 1fr;
  }

  .hero-update-card {
    min-height: auto;
  }
}

@media only screen and (max-width: 560px) {
  .hero-shell {
    padding: 88px 14px 42px;
  }

  .hero-updates-heading {
    width: 100%;
    justify-content: center;
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .hero-update-card h2 {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  .hero-update-card a {
    width: 100%;
  }
}

/* Partner preview fixes: keep hero update cards readable on phones and narrow tablets. */
@media only screen and (max-width: 1100px) {
  .hero-shell {
    min-height: auto;
    padding: 92px 18px 38px;
  }

  .hero-updates {
    width: min(680px, 100%);
  }

  .hero-updates-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "center"
      "right";
    gap: 16px;
  }

  .hero-update-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .hero-update-card h2 {
    font-size: clamp(1.42rem, 6vw, 2rem);
    line-height: 1.18;
  }

  .hero-update-card p:not(.hero-update-meta) {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-update-card a {
    width: 100%;
    margin-top: 18px;
  }
}

@media only screen and (max-width: 560px) {
  .hero-shell {
    padding: 82px 12px 34px;
  }
}

/* Strong first-screen enrollment callout inspired by local afterschool patterns. */
.hero-enrollment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  margin: 0 0 clamp(18px, 2.2vw, 28px);
  padding: clamp(20px, 3vw, 34px);
  border: 2px solid rgba(246, 185, 64, 0.88);
  border-radius: 8px;
  background: rgba(255, 251, 239, 0.96);
  box-shadow: 0 24px 60px rgba(17, 26, 18, 0.36), 0 0 0 6px rgba(246, 185, 64, 0.16);
  backdrop-filter: blur(8px);
}

.hero-enrollment-copy p {
  margin: 0 0 8px;
  color: #9b6506;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-enrollment-copy h1 {
  margin: 0;
  color: #17251f;
  font-size: clamp(1.85rem, 3.4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-enrollment-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-enrollment-facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(231, 245, 238, 0.96);
  color: #20352b;
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-enrollment-facts i {
  color: #1f8f71;
}

.hero-enrollment-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 6px;
  border: 2px solid rgba(255, 246, 214, 0.88);
  background: #1f4f3b;
  color: #fffaf0;
  box-shadow: 0 16px 34px rgba(17, 45, 31, 0.34), inset 0 -2px 0 rgba(0, 0, 0, 0.14);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.hero-enrollment-cta:hover {
  color: #fffaf0;
  background: #183f2f;
  transform: translateY(-1px);
}

@media only screen and (max-width: 1100px) {
  .hero-enrollment-panel {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-enrollment-cta {
    width: 100%;
  }
}

@media only screen and (max-width: 560px) {
  .hero-enrollment-panel {
    padding: 20px 18px;
  }

  .hero-enrollment-copy h1 {
    font-size: clamp(1.72rem, 8vw, 2.35rem);
  }

  .hero-enrollment-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-enrollment-facts span {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* Pickup-school list directly under the hero enrollment message. */
.hero-pickup-schools {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(215, 167, 47, 0.34);
  border-radius: 8px;
  background: rgba(255, 248, 226, 0.86);
}

.hero-pickup-schools h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: #20352b;
  font-size: clamp(1.04rem, 1.45vw, 1.32rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-pickup-schools h2 i {
  color: #b6790b;
}

.hero-pickup-schools p {
  margin: 0;
  color: #31463b;
  font-size: clamp(0.98rem, 1.18vw, 1.1rem);
  font-weight: 800;
  line-height: 1.55;
}

.hero-updates-single {
  grid-template-columns: minmax(280px, 640px);
  grid-template-areas: "left";
  justify-content: center;
}

.hero-updates-single .hero-update-card {
  min-height: auto;
}

@media only screen and (max-width: 560px) {
  .hero-pickup-schools {
    padding: 14px 15px;
  }

  .hero-pickup-schools h2 {
    align-items: flex-start;
  }
}

.hero-program-summary {
  max-width: 920px;
  margin: 14px 0 0;
  color: #31463b;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem) !important;
  font-weight: 700 !important;
  line-height: 1.62;
}

.hero-program-summary strong {
  color: #17251f;
  font-weight: 900;
}

/* Sparse hero layout with ACES-style highlights and school chips. */
.hero-sparse {
  width: min(980px, 92vw);
}

.hero-sparse .hero-enrollment-panel {
  display: block;
  padding: clamp(20px, 3vw, 32px);
}

.hero-kicker {
  margin: 0 0 10px !important;
  color: #9b6506 !important;
  font-size: clamp(1rem, 1.25vw, 1.18rem) !important;
  font-weight: 900 !important;
}

.hero-highlight-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(16px, 2vw, 22px) 0 0;
}

.hero-highlight-row div {
  padding: 12px 11px;
  border: 1px solid rgba(47, 74, 59, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(42, 55, 35, 0.08);
}

.hero-highlight-row strong,
.hero-highlight-row span {
  display: block;
  letter-spacing: 0;
}

.hero-highlight-row strong {
  color: #17251f;
  font-size: clamp(0.98rem, 1.2vw, 1.16rem);
  font-weight: 900;
  line-height: 1.2;
}

.hero-highlight-row span {
  margin-top: 5px;
  color: #637367;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-school-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-school-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(31, 143, 113, 0.24);
  border-radius: 999px;
  background: rgba(231, 245, 238, 0.96);
  color: #20352b;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
  margin-top: clamp(16px, 2vw, 24px);
}

.hero-action-row .hero-enrollment-cta {
  min-width: 178px;
}

.hero-absence-link {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 2px solid rgba(31, 78, 63, .45);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(24, 53, 43, .14);
  color: #18352b;
  display: inline-flex;
  font-size: .98rem;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  margin-left: auto;
  min-height: 58px;
  padding: 10px 18px;
}

.hero-absence-link:hover {
  background: #e7f5ee;
  color: #18352b;
  transform: translateY(-1px);
}

.hero-latest-link {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 8px 20px;
  border: 2px solid rgba(155, 101, 6, 0.72);
  border-radius: 6px;
  background: rgba(255, 239, 188, 0.98);
  color: #17251f;
  box-shadow: 0 14px 30px rgba(104, 71, 7, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  line-height: 1.2;
}

.hero-latest-link span {
  color: #9b6506;
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-latest-link strong {
  color: #17251f;
  font-size: 1.04rem;
  font-weight: 900;
}

.hero-latest-link:hover {
  color: #17251f;
  transform: translateY(-1px);
}

@media only screen and (max-width: 900px) {
  .hero-highlight-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 560px) {
  .hero-sparse .hero-enrollment-panel {
    padding: 22px 18px;
  }

  .hero-highlight-row {
    grid-template-columns: 1fr;
  }

  .hero-action-row .hero-enrollment-cta,
  .hero-absence-link,
  .hero-latest-link {
    margin-left: 0;
    width: 100%;
  }
}

/* Fancier Mid-Autumn latest-update button. */
.hero-festival-link {
  position: relative;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  min-width: 250px;
  overflow: hidden;
  border-color: rgba(155, 101, 6, 0.86);
  background: linear-gradient(135deg, rgba(255, 245, 214, 1) 0%, rgba(246, 185, 64, 0.96) 52%, rgba(255, 239, 188, 1) 100%);
  box-shadow: 0 18px 36px rgba(104, 71, 7, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.hero-festival-link:before,
.hero-festival-link:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-festival-link:before {
  width: 90px;
  height: 90px;
  right: -34px;
  top: -48px;
  background: radial-gradient(circle, rgba(255, 255, 245, 0.95) 0%, rgba(255, 230, 151, 0.28) 62%, rgba(255, 230, 151, 0) 70%);
}

.hero-festival-link:after {
  width: 5px;
  height: 5px;
  right: 46px;
  bottom: 13px;
  background: #d29a22;
  box-shadow: 18px -28px 0 rgba(210, 154, 34, 0.62), 38px -8px 0 rgba(210, 154, 34, 0.42);
}

.festival-art {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fffdf1;
  box-shadow: 0 8px 18px rgba(104, 71, 7, 0.16);
}

.festival-art i {
  color: #d39a22;
  font-size: 1.3rem;
  transform: rotate(-12deg);
}

.festival-art b {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 20px;
  height: 20px;
  border: 2px solid #b77717;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe2a0 0 18%, #d9992b 19% 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 238, 188, 0.52);
}

.festival-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.festival-copy em {
  color: #9b6506;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.festival-copy strong {
  color: #17251f;
  font-size: 1.08rem;
  font-weight: 900;
}

.hero-festival-link:hover .festival-art {
  transform: translateY(-1px) rotate(-3deg);
}

/* Give the poetic hero title more breathing room before the program summary. */
.hero-sparse .hero-enrollment-copy h1 + .hero-program-summary {
  margin-top: clamp(16px, 2vw, 24px);
}

/* The mobile hero is taller than one viewport. Let the first carousel slide
   define the cover height so the following calligraphy section cannot overlap it. */
@media only screen and (max-width: 760px) {
  .index-cover {
    height: auto !important;
    min-height: 100svh;
    overflow: visible !important;
  }

  .index-cover > .carousel-item:first-of-type,
  .index-cover > .carousel-item:first-of-type.bg-cover.about-cover {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    min-height: 100svh;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .index-cover > .carousel-item:not(:first-of-type) {
    display: none !important;
  }

  .hero-shell {
    min-height: 100svh;
    padding-top: 164px;
    padding-bottom: 48px;
  }

  .hero-action-row {
    position: relative;
    z-index: 3;
    padding-bottom: 4px;
  }
}
