/* =========================================================
   Autism Therapy Centre – South Extension page
   Only additions that style.css + Bootstrap don't already cover.
   Load after /assets/css/style.css
========================================================= */

/* Inline links inside body copy */
.ailc-page p a:not([class]),
.ailc-page li a:not([class]),
.ailc-page span a:not([class]) {
  color: var(--secondary-dk);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--secondary-mid);
  text-underline-offset: 3px;
  transition: var(--transition);
}

.ailc-page p a:not([class]):hover,
.ailc-page li a:not([class]):hover,
.ailc-page span a:not([class]):hover {
  color: var(--primary-mid);
  text-decoration-color: currentColor;
}

/* Inline links on dark panels */
.ailc-page .wcu-section .wcu-desc a:not([class]),
.ailc-page .benefit-services-footer a:not([class]) {
  color: var(--gold);
  text-decoration-color: rgba(232, 168, 56, 0.5);
}

.ailc-page .wcu-section .wcu-desc a:not([class]):hover,
.ailc-page .benefit-services-footer a:not([class]):hover {
  color: var(--white);
}

/* First-visit step titles */
.ailc-page .bx-step-copy strong {
  color: var(--text-dark);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

/* FAQ answer spacing */
.ailc-page .acc-body-inner p:last-child {
  margin-bottom: 0;
}

/* Map: shorter on small screens (style.css fixes it at 420px) */
@media (max-width: 991.98px) {
  .ailc-page .map-wrap {
    height: 320px;
  }
}

@media (max-width: 575.98px) {
  .ailc-page .map-wrap {
    height: 260px;
  }
}

/* Testimonials slider: room for card hover-lift + shadow, and space above the dots */


/* Section photos */
.ailc-page .ailc-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.ailc-page .ailc-photo--square {
  aspect-ratio: 1 / 1;
}

/* Age cards: photo in place of the icon circle */
.ailc-page .ailc-photo--card {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.ailc-page .feature-card .ailc-photo {
  box-shadow: var(--shadow-sm);
}

@media (max-width: 991.98px) {
  .ailc-page .ailc-photo--square {
    aspect-ratio: 3 / 2;
  }
}

/* ===== Google-style reviews ===== */
.grv-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; background: #fff; border-radius: 20px; padding: 18px 24px; box-shadow: 0 4px 18px rgba(26, 66, 104, .08); margin-bottom: 28px; }
.grv-summary-left { display: flex; align-items: center; gap: 14px; }
.grv-g { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #4285f4; }
.grv-title { display: block; color: var(--primary); font-size: 1rem; }
.grv-score { display: flex; align-items: center; gap: 8px; }
.grv-num { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.grv-stars { color: #fbbc04; font-size: .95rem; letter-spacing: 2px; }
.grv-btn { background: #1a73e8; color: #fff; font-weight: 700; font-size: .9rem; padding: 10px 20px; border-radius: 50px; text-decoration: none; transition: .3s; }
.grv-btn:hover { background: #1558b0; color: #fff; }

.grv-slider-wrap { position: relative; padding: 0 4px 44px; }
.grv-card { height: 100%; background: #fff; border-radius: 18px; padding: 22px; border: 1px solid #e8eaed; box-shadow: 0 2px 10px rgba(60, 64, 67, .08); display: flex; flex-direction: column; }
.grv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.grv-avatar { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--secondary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.grv-who { flex: 1; min-width: 0; }
.grv-who strong { display: block; color: #202124; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grv-who span { font-size: .8rem; color: #70757a; }
.grv-icon { color: #4285f4; font-size: 1.1rem; }
.grv-card .grv-stars { margin-bottom: 10px; }
.grv-text { color: #3c4043; font-size: .92rem; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.grv-card.is-open .grv-text { -webkit-line-clamp: unset; display: block; }
.grv-more { align-self: flex-start; background: none; border: 0; padding: 0; margin-top: 8px; font-size: .85rem; font-weight: 700; color: #1a73e8; cursor: pointer; }
.grv-more[hidden] { display: none; }

.grv-nav { position: absolute; top: calc(50% - 22px); transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--primary); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); display: flex; align-items: center; justify-content: center; }
.grv-prev { left: -14px; }
.grv-next { right: -14px; }
.grv-nav.swiper-button-disabled { opacity: .35; }
.grv-dots { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; }
.grv-dots .swiper-pagination-bullet-active { background: var(--secondary); }

@media (max-width: 767.98px) {
  .grv-summary { justify-content: center; text-align: center; }
  .grv-nav { display: none; }
}

/* ===== Responsive fixes (all screen sizes) ===== */
.ailc-page .hero .hero-stats-row { margin-top: 28px; }
.ailc-page .contact-detail-value a[href^="mailto"] { overflow-wrap: anywhere; }

/* Small laptops: keep the three stats on one line */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .ailc-page .hero .hero-stats-row { flex-wrap: nowrap; gap: 12px; padding: 14px 16px; }
  .ailc-page .hero .stat-divider { display: none; }
  .ailc-page .hero .stat-icon { width: 40px; height: 40px; }
  .ailc-page .hero .stat-nums { font-size: 1.15rem; }
}

/* Tablets and phones: centre the hero so text, buttons and stats line up */
@media (max-width: 991.98px) {
  .ailc-page .hero .page-hero-title,
  .ailc-page .hero .hero-para { text-align: center; }
  .ailc-page .hero .hero-para { margin-left: auto; margin-right: auto; }
  .ailc-page .hero .btn-group-hero { justify-content: center; }
  .ailc-page .hero .hero-stats-row { margin-left: auto; margin-right: auto; }
  .ailc-page .grv-prev { left: -6px; }
  .ailc-page .grv-next { right: -6px; }
}

/* Phones: full-width buttons, stats in one row */
@media (max-width: 575.98px) {
  .ailc-page .hero .btn-group-hero { flex-direction: column; align-items: stretch; }
  .ailc-page .hero .btn-group-hero a { justify-content: center; }
  .ailc-page .hero .hero-stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 10px; }
  .ailc-page .hero .stat-box { flex-direction: column; gap: 6px; text-align: center; }
  .ailc-page .hero .stat-icon { width: 38px; height: 38px; }
  .ailc-page .hero .stat-nums { font-size: 1.05rem; }
  .ailc-page .hero .stat-text { font-size: 0.68rem; line-height: 1.3; }
  .ailc-page .section-heading { font-size: clamp(1.45rem, 6.5vw, 1.9rem); }
  .ailc-page .grv-summary { padding: 16px; }
  .ailc-page .grv-card { padding: 18px; }
}

/* Very small phones */
@media (max-width: 359.98px) {
  .ailc-page .page-hero-title { font-size: 1.6rem; }
  .ailc-page .stat-nums { font-size: 1.1rem; }
}


/* ===== Hero section: image, spacing and decoration on every screen ===== */
/*.ailc-page .hero { overflow: hidden; }*/
/*.ailc-page .hero .why-img-frame img { height: auto; aspect-ratio: 13 / 10.5; }*/

@media (max-width: 991.98px) {
  .ailc-page .hero { padding-top: 40px; padding-bottom: 56px; }
  .ailc-page .hero .container.mt-5 { margin-top: 1rem !important; }
  .ailc-page .hero .row.g-5 { --bs-gutter-y: 2.5rem; }
  .ailc-page .hero .why-img-frame { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 575.98px) {
  .ailc-page .hero { padding-top: 28px; padding-bottom: 44px; }
  .ailc-page .hero .page-hero-title { font-size: clamp(1.6rem, 7.4vw, 2rem); line-height: 1.25; }
  .ailc-page .hero .hero-para { font-size: 0.95rem; }
  .ailc-page .hero .blob { display: none; }
  .ailc-page .hero .why-img-frame::before { top: -8px; left: -8px; right: 8px; bottom: -8px; border-radius: 18px; }
  .ailc-page .hero .why-img-frame img { border-radius: 14px; }
}