
/* Kidsverse About page stat-card repair */

.about-page {
  overflow-x: hidden;
}

.about-page *,
.about-page *::before,
.about-page *::after {
  box-sizing: border-box;
}

.about-page .about-stat-band,
.about-page .about-stat-band article {
  min-width: 0;
}

.about-page .about-stat-band article {
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: hidden;
}

.about-page .about-stat-band strong,
.about-page .about-stat-band span {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 600px) {
  .about-page {
    padding-bottom: 96px;
  }

  .about-page .about-hero,
  .about-page .about-stat-band,
  .about-page .about-story,
  .about-page .founder-section,
  .about-page .philosophy-section,
  .about-page .mission-vision,
  .about-page .why-section,
  .about-page .admissions-section,
  .about-page .site-footer {
    width: min(100% - 22px, 1180px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .about-page .about-stat-band {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 8px 0 30px !important;
  }

  .about-page .about-stat-band article {
    min-height: 0 !important;
    padding: 14px 12px !important;
    border-radius: 18px !important;
    text-align: left !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(238,248,255,0.9)) !important;
    box-shadow: 0 14px 34px rgba(31, 49, 66, 0.08) !important;
  }

  .about-page .about-stat-band strong {
    font-size: clamp(1.7rem, 9vw, 2.45rem) !important;
    line-height: 0.95 !important;
    white-space: normal !important;
  }

  .about-page .about-stat-band span {
    margin-top: 0 !important;
    color: #5f7183 !important;
    font-size: 0.86rem !important;
    line-height: 1.32 !important;
    font-weight: 850 !important;
  }

  .about-page .about-stat-band article:nth-child(3) {
    grid-column: 1 / -1 !important;
  }

  .about-page .about-stat-band article:nth-child(3) strong {
    font-size: clamp(1.85rem, 8vw, 2.5rem) !important;
  }

  .about-page .about-story {
    padding-top: 24px !important;
  }

  .about-page .kiya-widget {
    right: 12px !important;
    bottom: 16px !important;
    z-index: 90 !important;
  }

  .about-page .kiya-toggle,
  .about-page .kiya-avatar {
    width: 50px !important;
    height: 50px !important;
  }

  .about-page .whatsapp-float {
    left: 12px !important;
    bottom: 16px !important;
    z-index: 88 !important;
    max-width: calc(100vw - 92px) !important;
    min-height: 44px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    font-size: 0.86rem !important;
  }
}

@media (max-width: 420px) {
  .about-page .about-stat-band {
    grid-template-columns: 1fr !important;
  }

  .about-page .about-stat-band article:nth-child(3) {
    grid-column: auto !important;
  }

  .about-page .about-stat-band article {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .about-page .about-stat-band strong {
    font-size: clamp(1.8rem, 10vw, 2.35rem) !important;
  }
}

/* About page Why Kidsverse card repair */
.about-page .why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.about-page .why-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  min-height: 210px;
  padding: 20px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 216, 111, 0.26), transparent 32%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(31, 49, 66, 0.08);
}

.about-page .why-grid article span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #16453e;
  background: linear-gradient(135deg, #ffd86f, #d9f7e8);
  font-weight: 950;
}

.about-page .why-grid article h3 {
  margin: 0;
  color: #1f3142;
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-size: clamp(1.18rem, 1.6vw, 1.46rem);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

.about-page .why-grid article p {
  margin: 0;
  color: #5f7183;
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 800;
}

@media (max-width: 980px) {
  .about-page .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .about-page .why-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .about-page .why-grid article {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 5px 12px !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .about-page .why-grid article span {
    grid-row: 1 / span 2 !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 0.86rem !important;
  }

  .about-page .why-grid article h3,
  .about-page .why-grid article p {
    grid-column: 2 !important;
  }

  .about-page .why-grid article h3 {
    font-size: 1.08rem !important;
    line-height: 1.1 !important;
  }

  .about-page .why-grid article p {
    font-size: 0.88rem !important;
    line-height: 1.34 !important;
  }
}

/* Premium mobile layout for About page. */
@media (max-width: 600px) {
  .about-page .about-story,
  .about-page .founder-section {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .about-page .about-story > *,
  .about-page .founder-section > * {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .about-page .about-stat-band,
  .about-page .founder-grid,
  .about-page .philosophy-grid,
  .about-page .mission-vision,
  .about-page .why-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: calc(100% + 18px) !important;
    margin-right: -9px !important;
    margin-left: -9px !important;
    padding: 3px 9px 12px !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 9px !important;
    scrollbar-width: none !important;
    overscroll-behavior-inline: contain !important;
  }

  .about-page .about-stat-band::-webkit-scrollbar,
  .about-page .founder-grid::-webkit-scrollbar,
  .about-page .philosophy-grid::-webkit-scrollbar,
  .about-page .mission-vision::-webkit-scrollbar,
  .about-page .why-grid::-webkit-scrollbar { display: none !important; }

  .about-page .about-stat-band article {
    display: grid !important;
    grid-template-columns: 70px minmax(0, 1fr) !important;
    flex: 0 0 min(78vw, 285px) !important;
    grid-column: auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 105px !important;
    padding: 14px !important;
    scroll-snap-align: center !important;
  }

  .about-page .about-stat-band article strong {
    font-size: 1.65rem !important;
    white-space: nowrap !important;
  }

  .about-page .founder-grid article {
    flex: 0 0 min(80vw, 295px) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    scroll-snap-align: center !important;
  }

  .about-page .founder-grid img {
    display: block !important;
    width: 100% !important;
    height: 330px !important;
    min-height: 330px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff !important;
  }

  .about-page .philosophy-grid article,
  .about-page .why-grid article {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    flex: 0 0 min(86vw, 318px) !important;
    gap: 8px !important;
    align-content: start !important;
    min-height: 160px !important;
    padding: 16px !important;
    border-radius: 22px !important;
    scroll-snap-align: center !important;
  }

  .about-page .philosophy-grid article:first-child,
  .about-page .why-grid article:first-child { scroll-snap-align: start !important; }

  .about-page .philosophy-grid article span,
  .about-page .why-grid article span {
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: start !important;
    justify-self: start !important;
    width: fit-content !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 32px !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }

  .about-page .philosophy-grid article h3,
  .about-page .philosophy-grid article p,
  .about-page .why-grid article h3,
  .about-page .why-grid article p {
    grid-column: 1 !important;
    grid-row: auto !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .about-page .philosophy-grid article h3,
  .about-page .why-grid article h3 { font-size: 1.05rem !important; }
  .about-page .philosophy-grid article p,
  .about-page .why-grid article p { font-size: .84rem !important; line-height: 1.42 !important; }

  .about-page .mission-vision article {
    flex: 0 0 min(86vw, 318px) !important;
    min-height: 230px !important;
    padding: 18px !important;
    border-radius: 23px !important;
    scroll-snap-align: center !important;
  }

  .about-page .mission-vision article h2 {
    font-size: 1.45rem !important;
    line-height: 1.08 !important;
  }

  .about-page .about-hero-visual img {
    width: 100% !important;
    height: 280px !important;
    min-height: 280px !important;
    max-height: none !important;
    padding: 8px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff !important;
  }

  .about-page .founder-points {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
  }

  .about-page .kiya-widget {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 70 !important;
  }

  .about-page .whatsapp-float {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 70 !important;
    max-width: 116px !important;
  }
}

/* Protect the desktop/tablet About design from phone-only swipe-card rules. */
@media (min-width: 901px) {
  .about-page .philosophy-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  .about-page .philosophy-grid article {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
    min-height: 210px !important;
    padding: 22px !important;
  }

  .about-page .philosophy-grid article span {
    width: fit-content !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 7px 10px !important;
  }

  .about-page .why-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 14px !important;
    overflow: visible !important;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .about-page .philosophy-grid,
  .about-page .why-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    overflow: visible !important;
  }
}
