/* ==========================================================================
   After School + Batting Cages pages
   Loaded after styles.css (global: colors, header, footer, buttons, shared parts)
   ========================================================================== */
.topics legend {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.topics {
  border: 0;
  padding: 0;
  margin: 0;
}
.topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic {
  position: relative;
  cursor: pointer;
}
.topic input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.topic span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.topic:hover span {
  border-color: var(--white);
  color: var(--white);
}
.topic input:checked + span {
  background: var(--white);
  border-color: var(--white);
  color: #000;
}
.topic input:focus-visible + span {
  outline: 2px solid #ebbe4d;
  outline-offset: 2px;
}
.good-list {
  display: grid;
}
.good-list li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.good-list li:first-child {
  border-top: 0;
}
.good-list strong {
  font-size: 16px;
  font-weight: 700;
}
.good-list span {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

/* =========================================================
   HUB-STYLE PAGES (After School, Batting Cages)
   ========================================================= */
.hub2-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(72px, 10vw, 130px)) 0 clamp(140px, 14vw, 140px);
  text-align: center;
  background: var(--secondary);
}
.hub2-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-repeat: no-repeat;
}
.hub2-hero__bg--as {
  background-image: url('../images/after-school.jpg');
  background-position: 55% 40%;
}
.hub2-hero__bg--cg {
  background-image: url('../images/batting-cage.jpg');
  background-position: 35% 40%;
}
.hub2-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 40%) 0%, rgb(0 0 0 / 41%) 60%, rgb(0 0 0 / 20%) 100%);
}
.hub2-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hub2-hero .crumbs {
  justify-content: center;
  margin-bottom: 22px;
}
.hub2-hero__title {
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hub2-hero__text {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-bottom: 32px;
}
.hub2-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Overlapping quick-link tiles */
.tiles {
  position: relative;
  z-index: 2;
  margin-top: clamp(-110px, -9vw, -80px);
  background: transparent;
}
.tiles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 28px;
  background: #121213;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.35s var(--ease);
}
.tile:hover {
  background: #ebbe4d;
  border-color: #ebbe4d;
  color: #000;
  transform: translateY(-6px);
}
.tile__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.tile p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 22px;
  transition: color 0.3s;
}
.tile:hover p {
  color: rgba(0, 0, 0, 0.75);
}
.tile__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}
.tile__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}
.tile:hover .tile__cta svg {
  transform: translateX(4px);
}

.sec-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sec-head--center .sec-head__title {
  max-width: 760px;
}
.sec-head--center p {
  max-width: 600px;
}

/* Kids activity grid */
.kids {
  background: var(--secondary);
  padding: clamp(80px, 9vw, 130px) 0 clamp(64px, 7vw, 100px);
}
.kids__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.kid-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e0e0f;
}
.kid-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover !important;
  transition: transform 1s var(--ease);
}
.kid-card:not(.kid-card--plain)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.2) 65%);
}
.kid-card:hover .kid-card__img {
  transform: scale(1.06);
}
.kid-card__body {
  padding: 26px;
}
.kid-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.kid-card p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.kid-card--plain {
  align-items: center;
  min-height: 200px;
}
.kid-card--plain:nth-child(5) {
  background: #ebbe4d;
  border-color: #ebbe4d;
  color: #000;
}
.kid-card--plain:nth-child(5) p {
  color: rgba(0, 0, 0, 0.75);
}

/* Alternating split rows */
.splits {
  background: #0a0a0b;
  padding: clamp(72px, 8vw, 120px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.splits--first {
  padding-top: clamp(80px, 9vw, 130px);
  background: var(--secondary);
  border-top: 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  scroll-margin-top: var(--header-h);
}
.split + .split {
  margin-top: clamp(64px, 8vw, 110px);
}
.split--reverse .split__media {
  order: 2;
}
.split__media {
  aspect-ratio: 5 / 4;
  background-size: cover;
  background-position: center;
  border: 0px solid rgba(255, 255, 255, 0.1);
}
.split__media--as1 {
  background-image: url('../images/after-school-1.jpg');
}
.split__media--as2 {
  background-image: url('../images/after-school-2.jpg');
  background-position: 45% 60%;
}
.split__media--cg1 {
  background-image: url('../images/batting-case-1.jpg');
  background-position: 40% 30%;
}
.split__media--cg2 {
  background-image: url('../images/batting-cage-2.jpg');
  background-position: 65% 25%;
}
.split__title {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.split__text > p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 24px;
  max-width: 520px;
}
.ticks {
  display: grid;
  gap: 12px;
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}
.ticks svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  padding: 4px;
  background: #ebbe4d;
  color: #000;
  stroke-width: 3;
}
.timeline {
  counter-reset: none;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  margin-left: 4px;
}
.timeline li {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 0 0 18px 24px;
  font-size: 16px;
  font-weight: 600;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: #ebbe4d;
}
.timeline span {
  min-width: 56px;
  font-size: 14px;
  font-weight: 800;
  color: #ebbe4d;
}

/* Price cards */
.price2 {
  background: var(--secondary);
  padding: clamp(72px, 8vw, 120px) 0;
  scroll-margin-top: var(--header-h);
}
.price2__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px 34px;
  background: #0e0e0f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    border-color 0.3s,
    transform 0.35s var(--ease);
}
.pcard:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-6px);
}
.pcard--featured {
  border-color: #ebbe4d;
  background: #141415;
}
.pcard--featured:hover {
  border-color: #ebbe4d;
}
.pcard__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: #ebbe4d;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pcard h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}
.pcard__price {
  font-size: clamp(40px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}
.pcard__price span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
}
.pcard > p:not(.pcard__price) {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 26px;
}
.pcard .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* Booking */
.book2 {
  background: #0a0a0b;
  padding: clamp(72px, 8vw, 120px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: var(--header-h);
}
.book2__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.book2__head {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.book2__head > p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 16px 0 26px;
}
.book2__good {
  padding: 20px 24px;
  background: #121213;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.book2__form {
  padding: clamp(24px, 3vw, 40px);
  background: #121213;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.book2__form .contact-done {
  border: 0;
  padding: 8px 0;
  background: transparent;
}

/* Yellow CTA band */
.band {
  background: #ebbe4d;
  color: #000;
  padding: clamp(56px, 6vw, 84px) 0;
}
.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.band__title {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 680px;
}
.band__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn--dark {
  background: #000;
  color: var(--white);
}
.btn--dark:hover {
  background: #222;
  transform: translateY(-2px);
}
.btn--ghost-dark {
  border: 1.5px solid #000;
  color: #000;
}
.btn--ghost-dark:hover {
  background: rgba(0, 0, 0, 0.08);
}
@media (max-width: 1000px) {
  .tiles__grid,
  .price2__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .kids__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .book2__inner {
    grid-template-columns: 1fr;
  }
  .book2__head {
    position: static;
  }
}
@media (max-width: 600px) {
  .kids__grid {
    grid-template-columns: 1fr;
  }
  .kid-card {
    min-height: 240px;
  }
  .hub2-hero__buttons .btn,
  .band__buttons .btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 14px 10px;
    min-height: 52px;
    font-size: 15px;
  }
  .band__buttons {
    width: 100%;
  }
}
.topic input[type='checkbox'] {
  position: absolute;
  opacity: 0;
}
.topic input[type='checkbox']:checked + span {
  background: var(--white);
  border-color: var(--white);
  color: #000;
}

/* ==========================================================================
   Inner page banner headings - smaller, consistent size (home hero unchanged)
   ========================================================================== */
.hub2-hero__title {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
}

/* ==========================================================================
   After school: price banner under the hero
   ========================================================================== */
.as-price {
  position: relative;
  z-index: 2;
  background: var(--primary);
  border-top: 8px solid #000;
  border-bottom: 8px solid #000;
}
.as-price__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 56px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.as-price__amount {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
.as-price__amount strong {
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.as-price__amount span {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.as-price__text {
  justify-self: end;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.55;
  text-align: right;
  color: rgba(255, 255, 255, 0.92);
}
.as-price__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: #fff;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.as-price__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  transition: transform 0.25s;
}
.as-price__btn:hover {
  background: #000;
  color: #fff;
}
.as-price__btn:hover svg {
  transform: translateX(3px);
}
/* quick links sit below the banner instead of overlapping the hero */
.tiles--flat {
  margin-top: 0;
  padding-top: clamp(40px, 5vw, 64px);
  background: var(--secondary);
}
@media (max-width: 860px) {
  .as-price__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .as-price__text {
    justify-self: center;
    text-align: center;
  }
}

/* ==========================================================================
   After school: video
   ========================================================================== */
.as-video {
  padding: clamp(64px, 7vw, 110px) 0;
  background: #000;
}
.as-video__frame {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #0e0e0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.as-video__frame iframe,
.as-video__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.as-video__poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  width: 100%;
  border: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  color: #fff;
  font: inherit;
}
.as-video__poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.3s;
}
.as-video__poster:hover::before {
  background: rgba(0, 0, 0, 0.3);
}
.as-video__play {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(72px, 8vw, 96px);
  height: clamp(72px, 8vw, 96px);
  background: var(--primary);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}
.as-video__play svg {
  width: 38%;
  height: 38%;
  margin-left: 6%;
  fill: #fff;
}
.as-video__poster:hover .as-video__play {
  transform: scale(1.08);
}
.as-video__soon {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.as-video__poster.is-empty {
  cursor: default;
}
.as-video__poster.is-empty .as-video__play {
  background: rgba(255, 255, 255, 0.18);
}

/* After school: "Enroll Now" card inside the activities grid */
.kid-card--enroll h3 {
  margin-bottom: 20px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
  color: #000;
}
.kid-card__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   After school: all 5 locations (5 cards on desktop, slider on mobile)
   ========================================================================== */
.as-locs__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.as-locs__grid .near-card {
  padding: 24px 22px;
}
.as-locs__grid .near-card__name {
  font-size: clamp(22px, 1.7vw, 28px);
}
.as-locs__grid .near-card__go {
  right: 18px;
  width: 40px;
  height: 40px;
}
@media (max-width: 1300px) {
  .as-locs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .as-locs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .as-locs__grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: calc(-1 * clamp(16px, 4vw, 36px));
    padding-right: clamp(16px, 4vw, 36px);
  }
  .as-locs__grid::-webkit-scrollbar {
    display: none;
  }
  .as-locs__grid .near-card {
    scroll-snap-align: start;
    min-height: 240px;
  }
}
