/* Shared Fitroxx refinements. Component styles load before this file.
   Keep the existing visual language while using one responsive spacing rhythm. */
:root {
  --brand-red: #c8133c;
  --ink: #3b4757;
  --section-space: clamp(48px, 6.5vw, 88px);
  --card-gap: clamp(18px, 2.5vw, 28px);
}

/* Layout and typography */
.site-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 20px;
}
.main-container > .section-space {
  padding-block: var(--section-space);
  margin-block: 0;
}
.main-container > .section-space.wave-block {
  padding-block: calc(var(--section-space) + 24px);
}
.main-container > section {
  min-width: 0;
}
.main-container h1,
.main-container h2,
.main-container h3 {
  text-wrap: balance;
  overflow-wrap: break-word;
}
.main-container h1.page-heading {
  font-size: clamp(30px, 3.4vw, 44px) !important;
  line-height: 1.25 !important;
}
.main-container h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.3;
}
.main-container h3 {
  font-size: 19px;
  line-height: 1.4;
  font-family: Poppins, Arial, sans-serif;
  font-weight: 500;
}
.main-container p {
  line-height: 1.75;
}
.statement-list li .statement-card {
  height: auto;
  min-height: 245px;
  padding: 34px 28px;
}
.statement-list .fx-track {
  align-items: stretch;
}
.statement-list .fx-track > li {
  display: flex;
}
.statement-list .statement-card {
  width: 100%;
}
.section-header {
  margin-bottom: clamp(28px, 3.3vw, 44px);
}
.section-header h2 {
  margin-bottom: 18px;
}
.section-header p:last-child {
  margin-bottom: 0;
}
.section-header .h-sub {
  margin-bottom: 12px;
}
.block-header h1,
.block-header h2 {
  margin-bottom: 22px;
}
.intro-section > .site-container > .tw-flex {
  align-items: center;
}
.intro-section .intro-photo-pair {
  padding: 0;
}
.intro-section .fitroxx-photo-pair img {
  height: clamp(300px, 32vw, 405px);
}
.intro-section .block-header p {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
}
.intro-section .block-header {
  margin-bottom: 22px;
}
.intro-section .fitroxx-photo-pair img:nth-child(2) {
  margin-top: 28px;
}
.intro-section .on-scroll {
  transition-delay: 0s;
}
.heroSlider .fx-pause {
  right: auto;
  left: 20px;
}
.text-block .svg-block.video-block {
  max-width: none;
}
.fitroxx-photo-pair {
  padding: 0;
}
.block-header + p {
  margin-bottom: 24px;
}
.education-short .education-bottom p {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}
.education-short .education-bottom p .education-age {
  margin-left: 8px;
}
.education-short .education-bottom p .old {
  margin: 0;
}
.advantage-block h3 {
  margin: 0 0 14px;
  color: var(--ink);
}
.advantage-list li {
  min-width: 0;
}
.tab-values__description p {
  margin-bottom: 18px;
}
.tab-head {
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: 30px;
}
.centre-tabs .tab-content {
  min-width: 0;
}
.centre-tabs .centre-tab-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.centre-tabs .centre-tab-list li {
  margin: 0;
}
.centre-tabs .centre-tab-list li::after {
  display: none;
}
.centre-tabs .centre-tab-list a {
  display: block;
  padding: 12px 0;
}
.grid-filter .centre-tab-list {
  flex-direction: row;
  gap: 12px 22px;
}
.grid-filter .centre-tab-list li {
  margin: 0;
}
.grid-filter .centre-tab-list li::after {
  display: none;
}
.pagination {
  flex-direction: row;
}
.pagination li {
  margin: 0;
}
.pagination li::after {
  display: none;
}

/* One branded loader. Hidden by default, so missing JavaScript never blocks content.
   CSS is a second fail-open guard if a later runtime error interrupts the controller. */
.brand-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 11000;
  place-items: center;
  background: #fff;
  pointer-events: none;
}
.loader-active .brand-loader {
  display: grid;
  animation: loader-fail-open 0s 2s forwards;
}
.loader-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 280px;
  height: 280px;
}
.loader-emblem img {
  width: 200px;
  height: auto;
}
.loader-orbit {
  position: absolute;
  inset: 0;
  border: 3px solid #eaf5f8;
  border-top-color: var(--blue);
  border-bottom-color: var(--brand-red);
  border-radius: 50%;
  animation: loader-turn 1.25s linear infinite;
}
.loader-dot {
  position: absolute;
  inset: 0;
  animation: loader-turn 1.25s linear infinite;
}
.loader-dot::before {
  content: "";
  position: absolute;
  left: calc(50% - 7px);
  top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-red);
  border: 3px solid #fff;
}
@keyframes loader-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes loader-fail-open {
  to {
    visibility: hidden;
    opacity: 0;
  }
}

/* Benefits: real activity photography beneath readable, matching cards. */
.benefits-section {
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--section-space) + 12px);
  background: #eaf5f8 url("../img/fitroxx/group-stretching.webp") center 42% /
    cover no-repeat;
}
.benefits-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, #eaf5f8e8, #ffffffe0);
}
.benefits-section .section-header h2 {
  color: var(--brand-red);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
}
.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px;
  border-radius: 18px;
  background: #ffffffed;
  box-shadow: 0 10px 26px #245b7110;
  text-align: center;
}
.benefit-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}
.benefit-card h3 {
  color: var(--ink);
  margin: 0 0 12px;
  font-size: 17px;
}
.benefit-card p {
  font-size: 14px;
  margin: 0;
  color: #56616f;
}

/* Partner schools replace unsupported counters on Home and About. */
.partners-section {
  padding-block: var(--section-space);
  background: linear-gradient(120deg, #eaf5f8, #f7fbfd 60%, #fff3f6);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}
.partner-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 10px 28px #245b7110;
}
.partner-logo {
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.partner-logo img {
  width: auto;
  max-width: min(280px, 100%);
  max-height: 126px;
  object-fit: contain;
}
.partner-card h3 {
  color: var(--blue);
  font-size: 24px;
  margin: 0 0 8px;
}
.partner-card .partner-location {
  color: var(--brand-red);
  font-size: 14px;
  margin: 0 0 16px;
}
.partner-card p {
  font-size: 16px;
}
.partner-card .read-more {
  font-size: 15px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Editorial role imagery supports descriptions without inventing team identities. */
.team-role-grid,
.parent-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}
.team-role-card,
.guidance-card {
  min-width: 0;
  padding: 26px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 26px #245b7112;
}
.role-portrait {
  height: 210px;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 22px;
}
.role-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}
.team-role-card h3,
.guidance-card h3 {
  color: var(--blue);
  margin: 0 0 14px;
}
.team-role-card p,
.guidance-card p {
  font-size: 15px;
  margin: 0;
}
.guidance-number {
  display: block;
  font-family: Poppins, Arial, sans-serif;
  font-size: 36px;
  line-height: 1;
  color: var(--brand-red);
  margin-bottom: 22px;
}
.guidance-card a {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.parent-section {
  background: #f7fbfd;
}

/* Programme rows fit their content rather than stretching to legacy fixed sizes. */
.programs-list {
  display: grid;
  gap: 56px;
}
.programs-list > li {
  margin: 0;
  padding: 0;
}
.program-preview {
  align-items: center;
}
.program-preview .program-description {
  padding-block: 0;
}
.program-preview .program-heaer h3 {
  font-size: 26px;
  color: var(--blue);
  margin: 0 0 8px;
}
.program-preview .program-heaer {
  display: block;
}
.program-preview {
  margin-bottom: 0;
}
.program-heaer .programme-age {
  color: var(--brand-red);
  font-weight: 500;
  margin-bottom: 20px;
}
.program-preview .program-text p {
  margin-bottom: 18px;
}
.program-preview .read-more {
  font-size: 15px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

/* Contact and footer rows use a fixed icon track and a flexible text track. */
.contact-list {
  margin: 0;
  display: grid;
  gap: 18px;
}
.contact-list .contact-identity {
  display: block;
  margin: 0;
}
.contact-identity strong,
.contact-identity span {
  display: block;
}
.contact-list a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  align-items: start;
}
.contact-list a img {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
}
.contact-list a span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.contact-summary {
  padding: 24px;
  border-radius: 18px;
  background: #f0f8fb;
  margin-block: 26px;
}
.contact-container > .site-container > .tw-flex > div {
  margin-bottom: 0;
}
.contact-container .main-form {
  max-width: none;
}
.main-form .form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer .footer-top {
  padding: 88px 0 48px;
  min-height: 0;
}
footer .footer-bottom-wrap {
  padding: 0;
}
footer .f-subscribe,
footer .f-nav {
  margin-bottom: 0;
  align-items: flex-start;
}
footer .footer-top .logo {
  margin-bottom: 0;
}
.main-container [id] {
  scroll-margin-top: 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.55fr) minmax(0, 1.4fr);
  gap: 36px;
  align-items: start;
}
footer h3 {
  font-family: Poppins, Arial, sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: var(--brand-red);
  margin: 0 0 26px;
}
footer .logo img {
  width: 220px;
}
footer .brand-descriptor {
  font-size: 14px;
  margin-block: 16px 12px;
}
footer .f-subscribe p {
  font-size: 15px;
  margin-bottom: 0;
  line-height: 1.75;
}
footer .f-nav ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
footer .f-nav li {
  margin: 0;
  padding: 0;
}
footer .f-nav a {
  font-size: 15px;
  line-height: 1.7;
}
footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 22px;
}
footer .footer-bottom p {
  font-size: 13px;
  margin: 0;
}
.developer-credit a {
  color: var(--blue);
  text-underline-offset: 3px;
}
.developer-credit a:hover {
  text-decoration: underline;
}

/* Floating actions stay separated from the utility rail and safe-area edges. */
.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 960;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 56px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 40px;
  color: #fff;
  background: #148344;
  box-shadow: 0 5px 18px #103d3b30;
  font-family: Poppins, Arial, sans-serif;
  font-size: 13px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
}
.whatsapp-float:hover {
  color: #fff;
  background: #106b38;
  transform: translateY(-3px);
}
.up-btn {
  visibility: hidden;
  pointer-events: none;
  right: 25px;
  width: 46px;
  height: 46px;
}
.up-btn.show-up {
  bottom: calc(92px + env(safe-area-inset-bottom));
  visibility: visible;
  pointer-events: auto;
}
.up-btn svg {
  width: 14px;
  height: 10px;
}

/* Progressive enhancement: static content remains readable without site.js. */
html:not(.js) .on-scroll,
html:not(.js) .on-scroll * {
  opacity: 1 !important;
}
/* Only reset reveal transforms; the curriculum wheel uses transforms for layout. */
html:not(.js) .on-scroll,
html:not(.js) .text-block .block-header *,
html:not(.js) .text-block p,
html:not(.js) .text-block a {
  transform: none !important;
}
html:not(.js) .learning-elements-wrap::after {
  display: none;
}
html:not(.js) .learning-elements-wrap .circle-container {
  position: static;
  height: auto;
  transform: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
html:not(.js) .learning-elements-wrap .circle-container .learning-item {
  position: static;
  margin: 0;
}
html:not(.js) .learning-elements-wrap .tab-element-content {
  position: static;
  transform: none;
  width: 100%;
  margin-top: 20px;
}
html:not(.js) .main-nav {
  position: static;
  visibility: visible;
  opacity: 1;
  transform: none;
  width: auto;
  height: auto;
  background: transparent;
}
html:not(.js) .main-nav .main-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 0;
}
html:not(.js) .hamburger,
html:not(.js) .close-nav,
html:not(.js) .header-controls {
  display: none;
}
html:not(.js) .top-line {
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
html:not(.js) .tab-content {
  display: block;
  margin-bottom: 32px;
}

@media (max-width: 991px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-role-grid,
  .parent-guidance-grid {
    grid-template-columns: 1fr;
  }
  .team-role-card {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    column-gap: 24px;
  }
  .role-portrait {
    grid-row: span 2;
    margin: 0;
    height: 180px;
  }
  .team-role-card h3 {
    align-self: end;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
  }
  .footer-grid .f-subscribe {
    grid-column: 1 / -1;
    max-width: 560px;
  }
  .program-preview {
    gap: 24px;
  }
  .programs-list {
    gap: 42px;
  }
}
@media (max-width: 767px) {
  .intro-section > .site-container > .tw-flex {
    gap: 32px;
  }
  .intro-section .intro-photo-pair {
    padding: 0;
  }
  .intro-section .fitroxx-photo-pair img {
    height: clamp(270px, 68vw, 380px);
  }
  .intro-section .block-header p {
    margin-bottom: 16px;
  }
  .partners-grid {
    grid-template-columns: 1fr;
  }
  .partner-logo {
    height: 110px;
  }
  .partner-logo img {
    max-height: 110px;
  }
  footer .footer-top {
    padding: 64px 0 32px;
  }
  .whatsapp-label {
    display: none;
  }
  .whatsapp-float {
    padding: 12px;
    right: 16px;
  }
  .up-btn {
    right: 21px;
  }
  .centre-tabs .centre-tab-list a {
    padding-inline: 0;
  }
  .main-container .video-section {
    padding-block: var(--section-space);
  }
}
@media (max-width: 575px) {
  .centre-tabs .centre-tab-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    max-width: 420px;
    margin-inline: auto;
  }
  .benefits-grid,
  .footer-grid,
  .team-role-card {
    grid-template-columns: 1fr;
  }
  .benefit-card {
    padding: 28px;
  }
  .benefit-card p {
    max-width: 270px;
  }
  .role-portrait {
    height: 230px;
    margin-bottom: 22px;
  }
  .team-role-card h3 {
    align-self: auto;
  }
  .footer-grid .f-subscribe {
    grid-column: auto;
  }
  footer h3 {
    margin-bottom: 20px;
  }
  footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .main-form .input-area {
    display: grid;
    gap: 18px;
  }
  .main-form .input-wrap {
    width: 100%;
    margin: 0;
  }
  .centre-tabs .centre-tab-list {
    justify-content: center;
    gap: 10px 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .partner-card,
  .team-role-card,
  .guidance-card {
    transition: box-shadow 0.2s;
  }
  .partner-card:hover,
  .team-role-card:hover,
  .guidance-card:hover {
    box-shadow: 0 14px 32px #245b7122;
  }
  .role-portrait img {
    transition: transform 0.35s;
  }
  .team-role-card:hover .role-portrait img {
    transform: scale(1.035);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loader-active .brand-loader {
    animation: loader-fail-open 0s 2s forwards !important;
  }
  .loader-orbit,
  .loader-dot {
    animation: none !important;
  }
  .on-scroll,
  .on-scroll * {
    opacity: 1 !important;
  }
  .on-scroll,
  .text-block .block-header *,
  .text-block p,
  .text-block a {
    transform: none !important;
  }
}

/* About page tagline and photo-led Experience cards. */
.about-brand-line {
  margin: 0 0 18px;
  color: #66717d;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.015em;
}
.advantage-list.advantage-second {
  list-style: none;
}
.advantage-list.advantage-second > li::before {
  content: none !important;
  display: none !important;
}
.advantage-list.advantage-second > li {
  width: 50%;
  padding: 0 15px;
  padding-top: 0;
}
.advantage-list.advantage-second .about-child {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  height: 100%;
  padding: 15px;
  border: 1px solid #dceaf0;
  border-top: 3px solid var(--red);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px #245b7112;
}
.advantage-photo {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 300px;
  max-height: none;
  margin: 0;
  border-radius: 13px;
  background: linear-gradient(145deg, #edf7fb 0%, #f8fbfc 58%, #fff3f5 100%);
  object-fit: contain;
  object-position: center;
}
.advantage-list.advantage-second li .advantage-block h3,
.advantage-list.advantage-second li .advantage-block p {
  text-align: center;
}
.advantage-list.advantage-second .about-child h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
}

/* Shared parent-review cards appear on About and in the Centre Information tab. */
.parent-reviews-section {
  background: #f3f8fb;
}
.parent-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}
.parent-review-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #dceaf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px #245b7112;
}
.parent-review-card blockquote {
  margin: 0 0 22px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
}
.parent-review-card blockquote::after {
  content: none;
}
.parent-review-card cite {
  margin-top: auto;
  color: var(--blue);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}
.team-role-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-role-card {
  align-content: center;
  min-height: 132px;
}
.team-role-card .team-role-title {
  margin: 0;
  color: #66717d;
  font-size: 16px;
}

@media (max-width: 991px) {
  .advantage-list.advantage-second > li {
    width: 50%;
  }
  .parent-reviews-grid {
    grid-template-columns: 1fr;
  }
  .parent-review-card {
    padding: 24px;
  }
  .team-role-grid {
    grid-template-columns: 1fr;
  }
  .team-role-card {
    display: block;
    min-height: 0;
  }
}
@media (max-width: 480px) {
  .advantage-list.advantage-second > li {
    width: 100%;
  }
  .advantage-list.advantage-second .advantage-photo {
    height: 270px;
  }
}
