/* Theme: override Bootstrap variables so default classes use brand colors */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
:root {
  --brand-red: #e61028;
  --brand-blue: #003366;
  --brand-yellow: #e61028;
  --brand-purple: #003366;
  --bs-primary: var(--brand-blue);
  --bs-primary-rgb: 0, 51, 102;
  --bs-danger: var(--brand-red);
  --bs-danger-rgb: 230, 16, 40;
  --bs-warning: var(--brand-red);
  --bs-warning-rgb: 230, 16, 40;
  --bs-body-font-family: "Inter", sans-serif;
  --bs-link-color: var(--brand-blue);
  --bs-link-hover-color: #002244;
  --card-img: url("../images/ListItem.webp");
}
.font-rubik {
  font-family: "Rubik", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
body {
  font-family: "Besley", serif;
}
.learn,
.faq,
.testi,
.life,
.sum,
.grow,
.gx,
.ms {
  padding: 150px 0;
}
@media (max-width: 746px) {
  .learn,
  .faq,
  .testi,
  .life,
  .sum,
  .grow,
  .gx,
  .ms {
    padding: 60px 14px;
  }
}
.container {
  max-width: 1300px;
}
.w-fit-content {
  width: fit-content;
}

.btn-primary {
  --bs-btn-bg: var(--brand-blue);
  --bs-btn-border-color: var(--brand-blue);
  --bs-btn-hover-bg: #002244;
  --bs-btn-hover-border-color: #002244;
  --bs-btn-active-bg: #001830;
}
.btn-warning {
  --bs-btn-bg: var(--brand-red);
  --bs-btn-border-color: var(--brand-red);
  --bs-btn-color: #ffffff;
  --bs-btn-hover-bg: #c90001;
  --bs-btn-hover-border-color: #c90001;
  --bs-btn-hover-color: #ffffff;
}
.btn-outline-light {
  --bs-btn-hover-color: var(--brand-blue);
}

.bg-purple,
.bg-blue {
  background-color: var(--brand-blue);
}
.text-yellow,
.text-red {
  color: var(--brand-red);
}
.rotate-90 {
  rotate: 90deg;
}

/* ---------- Hero ---------- */
.hero {
  background: #151515;
  min-height: 100vh; /* floor so it never collapses on tiny screens */
}

/* Video overlay — dark top + bottom, lighter mid so video breathes through */
.hero-overlay {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 6, 20, 0.72) 0%,
    rgba(10, 6, 20, 0.38) 40%,
    rgba(10, 6, 20, 0.55) 72%,
    rgba(10, 6, 20, 0.82) 100%
  );
}
/* Header: Clean White Header for desktop with crisp dark typography */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1050 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  transition: all 0.3s ease;
}

.hero {
  padding-top: 85px !important;
}

.subpage-hero {
  padding-top: 85px !important;
}

.site-header .header-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.header-logo-box {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 10px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.header-logo-box:hover {
  transform: scale(1.02);
}

.header-logo-box img {
  height: 54px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 992px) {
  .site-header .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.nav-pill {
  font-size: 15px;
  padding: 4px 8px;
  background: transparent;
}

.nav-pill .navbar-nav .nav-link {
  font-size: 15px;
  font-weight: 600;
  color: #000000 !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  text-shadow: none;
}

.nav-pill .navbar-nav .nav-link:hover,
.nav-pill .navbar-nav .nav-link.active {
  color: #003366 !important;
  background: rgba(0, 51, 102, 0.08);
  transform: translateY(-1px);
}

.nav-pill .btn-warning {
  background: #e61028 !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(230, 16, 40, 0.3);
  transition: all 0.3s ease;
}

.nav-pill .btn-warning:hover {
  background: #c90001 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 16, 40, 0.5);
}

@media (max-width: 991.98px) {
  .site-header {
    background: #ffffff !important;
    padding: 6px 0;
  }
  .site-header .header-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .header-logo-box {
    order: 1 !important;
    margin: 0 !important;
    padding: 2px 4px !important;
    flex: 0 0 auto !important;
  }
  .header-logo-box img {
    height: 48px !important;
  }
  .mobile-header-brand-title {
    order: 2 !important;
    color: #102a43;
    line-height: 1.2;
    padding: 0 6px;
    flex: 1 1 auto !important;
    text-align: center !important;
    min-width: 0;
  }
  .mobile-header-brand-title span {
    font-size: 13px;
    font-weight: 700;
    color: #102a43;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-header .navbar-toggler {
    order: 3 !important;
    background: #003366 !important;
    border-radius: 8px;
    padding: 5px 8px !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }
  .nav-pill.collapse.show,
  .nav-pill.collapsing {
    order: 4 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100% !important;
  }
  .nav-pill .navbar-nav {
    gap: 6px !important;
    width: 100%;
  }
  .nav-pill .navbar-nav .nav-link {
    text-align: center;
    width: 100%;
    color: #1a202c !important;
  }
  .nav-pill .navbar-nav .nav-link:hover,
  .nav-pill .navbar-nav .nav-link.active {
    color: #003366 !important;
    background: #f1f5f9;
  }
}

.hero-gutter {
  gap: 100px;
}
.navbar-dark {
  --bs-navbar-color: #fff;
  --bs-navbar-hover-color: var(--brand-yellow);
  --bs-navbar-active-color: #fff;
}
.nav-logos img {
  height: 140px;
  width: auto;
}
/* Heading */
.hero-title {
  font-size: 48px;
  line-height: 1.1;
}
.hero-title {
  text-transform: capitalize;
}
.hero-meta,
.hero-title {
  max-width: 1048px;
}
@media (min-width: 992px) {
  .hero-title {
    font-size: 90px;
  }
}

.rotator {
  position: relative;
  display: inline-grid;
  color: var(--brand-yellow);
}
.rotator .word {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 0;
  transform: translateY(0.25em);
  filter: blur(6px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
  will-change: opacity, transform;
}
.rotator .word.active {
  opacity: 1;
  transform: none;
  filter: none;
}
.rotator .word.out {
  transform: translateY(-0.25em);
}
.scribble {
  position: absolute;
  top: -45%;
  left: -6.7%;
  width: 107.5%;
  height: 182%;
  max-width: none;
  pointer-events: none;
}
@media (max-width: 746px) {
  .scribble {
    height: 120%;
    width: 100%;
    top: 10%;
    left: 4%;
  }
}
/* Bottom bar */
.apply-btn {
  padding: 16px 40px;
  font-size: 20px;
  line-height: 33.84px; /* 141% */
  letter-spacing: -0.48px;
  text-transform: capitalize;
  border-radius: 20px 20px 0 0;
  display: inline-flex;
  align-items: center;
  background: var(--brand-red);
  color: #fff;
}
.apply-btn:hover {
  background: #c90001;
  color: #fff;
}
.hero-meta {
  column-gap: 50px;
  row-gap: 10px;
  align-items: stretch;
}
.hero-dot {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
} /* Side tab */
.enquiry-tab {
  width: 2.4rem;
  padding: 1.25rem 0;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-radius: 0.4rem 0 0 0.4rem;
}
.vtext {
  writing-mode: vertical-rl;
}

@media (prefers-reduced-motion: reduce) {
  .rotator .word {
    transition: none;
  }
}
.learn,
.faq {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.learn-wrap {
  position: relative;
  z-index: 1;
}
.learn-title,
.faq-title {
  font-size: clamp(1.9rem, 4vw, 58px);
}

/* Top-left image cutout */
.learn-cutout {
  position: absolute;
  top: -1rem;
  left: -4%;
  z-index: 0;
  width: min(55vw, 683px);
  opacity: 0.6;
  pointer-events: none;
}
@media (min-width: 992px) {
  .learn-cutout {
    width: min(30vw, 440px);
    opacity: 1;
  }
}

/* Cards in 'What Learning Looks Like Here' */
.learn-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  padding: 24px;
  background: var(--brand-blue);
  box-shadow: 0 8px 24px rgba(0, 51, 102, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}
.learn-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(165deg, #004488 0%, #003366 50%, #002244 100%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.learn-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 36px rgba(0, 51, 102, 0.32);
}
.learn-card:hover::before {
  transform: scale(1.05);
}
.learn-panel {
  border-radius: 8px;
  overflow: hidden;
}
.learn-panel-content {
  padding: 24px 20px 30px 20px;
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: none;
  background: rgba(0, 30, 60, 0.45);
  backdrop-filter: blur(20px);
  color: #ffffff !important;
}

.learn-img {
  --bs-aspect-ratio: 54%;
  border-radius: 8px 8px 0 0;
}
.learn-img img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.learn-card:hover .learn-img img {
  transform: scale(1.08);
}
.learn-panel-content h3 {
  font-size: 20px;
  line-height: 1.3;
  color: #ffffff !important;
  font-weight: 700;
}

.learn-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #ffffff !important;
  opacity: 0.95;
}

.btn-grade {
  background-color: #ffffff;
  color: #003366 !important;
  border: 1px solid #ffffff;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}
.learn-card:hover .btn-grade {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff !important;
}
.btn-grade:hover {
  background-color: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #ffffff !important;
  transform: translateX(4px);
}

@media (max-width: 767.98px) {
  .learn-col {
    max-width: 26rem;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotator .word,
  .learn-card,
  .learn-card::before,
  .learn-img img {
    transition: none;
  }
  .learn-card:hover {
    transform: none;
  }
}
.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(20rem, 36.5vw, 38rem);
  background: #1d2b1a;
  color: #fff;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: cta-zoom 24s ease-in-out infinite alternate;
}
@keyframes cta-zoom {
  to {
    transform: scale(1.08);
  }
}
.cta::after {
  /* readability overlay */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.1) 55%,
    transparent 100%
  );
}
.cta-strip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0.8 !important;
  pointer-events: none;
}
.cta-wrap {
  position: relative;
  z-index: 3;
  max-width: 975px;
}
.cta-title {
  font-size: clamp(40px, 4.6vw, 92px);
  line-height: 1.1;
}

.apply-btn {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    border-color 0.3s ease;
}
.apply-btn i {
  display: inline-block;
  transition: transform 0.35s ease;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-purple);
  color: rgba(255, 255, 255, 0.62);
  padding-block: 3rem;
}
.footer-logo {
  height: 160px;
  width: auto;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-logo:hover {
  transform: scale(1.06);
}
.footer-copy {
  font-size: 0.8rem;
}
.footer-credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .rotator .word,
  .learn-card,
  .learn-card::before,
  .learn-img img,
  .apply-btn,
  .apply-btn i,
  .footer-logo {
    transition: none;
  }
  .learn-card:hover {
    transform: none;
  }
  .cta-bg {
    animation: none;
  }
}
#faqAccordion {
  max-width: 700px;
}
.faq-cutout {
  position: absolute;
  bottom: -4%;
  z-index: 0;
  width: min(55vw, 420px);
  opacity: 0.5;
  pointer-events: none;
}
@media (min-width: 992px) {
  .faq-cutout {
    right: -3%;
    width: min(30vw, 420px);
    opacity: 1;
  }
}

.faq .accordion {
  --bs-accordion-bg: #eaf0f8;
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0.3rem;
  --bs-accordion-inner-border-radius: 0.3rem;
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-color: var(--brand-blue);
  --bs-accordion-active-color: #fff;
  --bs-accordion-btn-padding-x: 1.5rem;
  --bs-accordion-btn-padding-y: 1.35rem;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-icon-width: 2rem;
  --bs-accordion-btn-icon-transform: none;
  --bs-accordion-body-padding-x: 1.5rem;
  --bs-accordion-body-padding-y: 0;
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23E61028'/%3E%3Cpath d='M16 9v14M9 16h14' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23fff'/%3E%3Cpath d='M9 16h14' stroke='%23003366' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq .accordion-item {
  margin-bottom: 0.7rem;
  transition: background-color 0.4s ease;
}
.faq .accordion-item:has(.accordion-button:not(.collapsed)) {
  background-color: var(--brand-purple);
}
.faq .accordion-button {
  font-size: 14px;
  line-height: 1.35;
  gap: 1rem;
}
.faq .accordion-button::after {
  flex-shrink: 0;
  transition: transform 0.35s ease;
}
.faq .accordion-button:hover::after {
  transform: scale(1.12);
}
.faq .accordion-body {
  padding-bottom: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Testimonials ---------- */
.testi-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition:
    opacity 1.2s ease,
    transform 7s ease-out;
}
.testi-bg.active {
  opacity: 1;
  transform: none;
}

.testi-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(14rem, 44vw, 40rem);
  opacity: 0.8 !important;
  pointer-events: none;
}
.testi-wrap {
  position: relative;
  z-index: 2;
}
.testi-label,
.testi-name {
  font-size: 24px;
  line-height: 28.8px; /* 120% */
}
.testi-quote {
  font-size: 36px;
  font-weight: 500;
  line-height: 51.8px;
}
.testi-role {
  font-size: 18px;
  line-height: 25.2px; /* 140% */
}

/* Slides share one grid cell so the height never jumps */
.testi-slides {
  max-width: 1185px;
  margin: auto;
  flex-shrink: 0;
  display: grid;
}
.testi-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5rem);
  filter: blur(6px);
  max-width: 1100px;
  margin: auto;
  text-wrap: wrap;
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease,
    visibility 0s linear 0.7s;
}
.testi-slide.is-before {
  transform: translateY(-1.5rem);
}
.testi-slide.is-after {
  transform: translateY(1.5rem);
}
.testi-slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition:
    opacity 0.8s ease 0.2s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    filter 0.8s ease 0.2s,
    visibility 0s;
}
.testi-author {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.testi-slide.active .testi-author {
  opacity: 1;
  transition: opacity 0.8s ease 0.55s;
}

/* Arrows + pagination: vertical on desktop, horizontal on mobile */
.testi-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 992px) {
  .testi-nav {
    flex-direction: column;
    gap: 0.95rem;
  }
}

.testi-arrow {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  opacity: 0.8;
  line-height: 1;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}
.testi-arrow:hover {
  opacity: 1;
}
.testi-arrow i {
  display: block;
  transition: transform 0.3s ease;
}
@media (max-width: 991.98px) {
  .testi-arrow i {
    transform: rotate(-90deg);
  }
}
@media (min-width: 992px) {
  .testi-prev:hover i {
    transform: translateY(-3px);
  }
  .testi-next:hover i {
    transform: translateY(3px);
  }
}

.testi-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  transition:
    background-color 0.35s ease,
    transform 0.35s ease;
}
.testi-dot:hover {
  transform: scale(1.35);
}
.testi-dot.active {
  background: var(--brand-yellow);
  transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
  .testi-bg,
  .testi-slide,
  .testi-slide.active,
  .testi-author,
  .testi-dot {
    transition: none;
  }
}
.life {
  overflow: hidden;
  background: #fff;
}
.life-title {
  font-size: clamp(1.6rem, 3.15vw, 2.9rem);
}

.life-rows {
  --gap: clamp(0.6rem, 1.3vw, 1.2rem);
  --img-h: clamp(7rem, 15.8vw, 15rem);
  gap: var(--gap);
}

.marquee {
  position: relative;
  overflow: hidden;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 12%;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.marquee-track {
  width: max-content;
  display: flex;
  animation: marquee var(--dur, 60s) linear infinite;
  -webkit-animation: marquee var(--dur, 60s) linear infinite;
}
@-webkit-keyframes marquee {
  to {
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.marquee-track.is-reverse {
  animation-direction: reverse;
}
@keyframes marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  gap: var(--gap);
  padding-right: var(--gap);
}
.marquee-group figure {
  height: var(--img-h);
  aspect-ratio: 4 / 3;
  border-radius: 0.3rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}
.marquee-group img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.marquee-group figure:hover img {
  transform: scale(1.07);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}
.sum {
  position: relative;
  overflow: hidden;
  background: #1c1c1c;
  color: #fff;
}
.sum-wrap {
  position: relative;
  z-index: 3;
}
.sum-title {
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.sum-card {
  --sum-bg: var(--brand-blue);
  --sum-fg: #fff;
  --sum-accent: var(--brand-red);
  padding: 32px;
  gap: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #003366;
  outline-offset: 3px;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    background-color 0.4s ease,
    color 0.4s ease;
}
/* Red state: only the hovered/focused card */
.sum-card:hover,
.sum-card:focus-within {
  --sum-bg: var(--brand-red);
  --sum-fg: #ffffff;
  --sum-accent: #ffffff;
  --sum-title: #ffffff;
}
.sum-card:hover,
.sum-card:focus-within {
  background-color: #c90001;
  transform: translateY(-8px);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.35);
}

.sum-num {
  font-size: 14px;
  letter-spacing: 1.4px;
  color: var(--sum-accent);
  transition: color 0.4s ease;
}
.sum-name {
  font-size: 40px;
  font-weight: 500;
  line-height: 48px; /* 120% */
  color: var(--sum-title);
  transition: color 0.4s ease;
}
.sum-line {
  height: 1px;
  margin: 0.9rem 0 1.5rem;
  background-color: var(--sum-accent);
  transform-origin: left;
  transition: background-color 0.4s ease;
}
.sum-list {
  font-size: 18px;
  line-height: 28px;
  color: var(--sum-fg);
  transition: color 0.4s ease;
}

/* ---------- Milestones ---------- */
.ms {
  position: relative;
  overflow: hidden;
  background: #33453f;
  color: #fff;
  padding-block: 4rem 8rem;
}
@media (min-width: 992px) {
  .ms {
    aspect-ratio: 564 / 333;
    padding-block: clamp(3.5rem, 7.6vw, 7rem) 0;
  }
}
.ms-wrap {
  position: relative;
  z-index: 3;
  max-width: 975px;
}
.ms-title {
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.ms-text {
  max-width: 40rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* Stat tags: stacked on mobile/tablet, positioned over the image on desktop */
.ms-tags {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.5rem auto 0;
  padding-inline: 1rem;
}
.ms-tag {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  font-size: 0.95rem;
}
.ms-tag.is-flip {
  flex-direction: row-reverse;
}
.ms-chip,
.ms-label {
  display: flex;
  align-items: center;
  border-radius: 0.15rem;
}
.ms-chip {
  padding: 0.7em 0.9em;
  background: var(--brand-purple);
  color: #fff;
  font-size: 0.9em;
  font-weight: 500;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}
.ms-label {
  padding: 0.7em 1em;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.2;
  transition: box-shadow 0.35s ease;
}
.ms-tag:hover .ms-chip {
  background: var(--brand-yellow);
  color: #111;
}
.ms-tag:hover .ms-label {
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.3);
}
.ms-line {
  display: none;
}

@media (min-width: 992px) {
  .ms-tags {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }
  .ms-tag {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: clamp(0.7rem, 1.1vw, 1rem);
    white-space: nowrap;
    pointer-events: auto;
  }

  /* leader line: draws itself, then the dot pulses */
  .ms-line {
    display: block;
    position: absolute;
    top: 50%;
    left: 100%;
    width: var(--len, 7vw);
    height: 1px;
    background: #fff;
    transform-origin: left center;
    transform: rotate(var(--ang, 38deg)) scaleX(0);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
  }
  .ms-tag.aos-animate .ms-line {
    transform: rotate(var(--ang, 38deg)) scaleX(1);
  }
  .ms-tag.is-flip .ms-line {
    left: auto;
    right: 100%;
    transform-origin: right center;
    transform: rotate(calc(var(--ang, 38deg) * -1)) scaleX(0);
  }
  .ms-tag.is-flip.aos-animate .ms-line {
    transform: rotate(calc(var(--ang, 38deg) * -1)) scaleX(1);
  }

  .ms-line::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -0.2rem;
    width: 0.4rem;
    height: 0.4rem;
    margin-top: -0.2rem;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity 0.4s ease 1.2s;
    animation: ms-pulse 2.4s ease-out infinite;
  }
  .ms-tag.is-flip .ms-line::after {
    right: auto;
    left: -0.2rem;
  }
  .ms-tag.aos-animate .ms-line::after {
    opacity: 1;
  }
}
@keyframes ms-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0.6rem rgba(255, 255, 255, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-line,
  .ms-line::after {
    transition: none;
    animation: none;
  }
}
/* ---------- Global exposure (image cards with hover overlay) ---------- */
.gx-wrap {
  position: relative;
  z-index: 1;
}
.gx-title {
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  line-height: 1.15;
  margin-bottom: 2.25rem;
}

.gx-grid {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}
@media (min-width: 992px) {
  .gx-grid {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
  }
}

.gx-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  border-radius: 0.25rem;
  background: #222;
  outline-offset: 3px;
}
@media (min-width: 992px) {
  .gx-card {
    aspect-ratio: 3.5 / 1.5;
  }
}

.gx-card img {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.gx-card:is(:hover, :focus-within) img {
  transform: scale(1.08);
}

/* default caption */
.gx-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.2;
  transition:
    opacity 0.35s ease,
    transform 0.5s ease;
}
.gx-card:is(:hover, :focus-within) .gx-caption {
  opacity: 0;
  transform: translateY(12px);
}

/* hover overlay: slides up, content staggers in */
.gx-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.4rem 1.75rem;
  background: rgba(55, 30, 102, 0.9);
  color: #fff;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gx-card:is(:hover, :focus-within) .gx-overlay {
  transform: none;
}

.gx-overlay > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease var(--d, 0s),
    transform 0.5s ease var(--d, 0s);
}
.gx-card:is(:hover, :focus-within) .gx-overlay > * {
  opacity: 1;
  transform: none;
}
.gx-card:is(:hover, :focus-within) .gx-overlay > :nth-child(1) {
  --d: 0.2s;
}
.gx-card:is(:hover, :focus-within) .gx-overlay > :nth-child(2) {
  --d: 0.3s;
}
.gx-card:is(:hover, :focus-within) .gx-overlay > :nth-child(3) {
  --d: 0.4s;
}

.gx-overlay h3 {
  font-size: 24.955px;
  font-weight: 500;
  line-height: 34.03px;
}
.gx-overlay p {
  max-width: 92%;
  font-size: 15.881px;
  line-height: 27.224px;
  font-family: "Rubik";
}
.gx-overlay > .gx-btn {
  --bs-btn-hover-color: var(--brand-purple);
  padding: 0.65rem 2.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border-color: rgba(255, 255, 255, 0.6);
  border-radius: 0.15rem;
  transition:
    opacity 0.5s ease var(--d, 0s),
    transform 0.5s ease var(--d, 0s),
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .gx-card img,
  .gx-caption,
  .gx-overlay,
  .gx-overlay > *,
  .gx-overlay > .gx-btn {
    transition: none;
  }
}
.grow-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1rem, 2.9vw, 2.6rem) clamp(1rem, 2.9vw, 2.6rem) 3.5rem;
  border-radius: 0.25rem;
  background: linear-gradient(
    160deg,
    #004488 0%,
    var(--brand-purple) 60%,
    #001f3f 100%
  );
  color: #fff;
}
.grow-panel::before {
  /* glossy highlight */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    rgba(235, 228, 255, 0.28) 0%,
    rgba(160, 130, 255, 0.12) 30%,
    transparent 55%
  );
  pointer-events: none;
}
.grow-cutout {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: clamp(8rem, 24vw, 22rem);
  pointer-events: none;
}
.grow-row {
  position: relative;
  z-index: 1;
}

.grow-frame {
  border: 0.25rem solid #8b6cf0;
  border-radius: 0.35rem;
  transition: border-color 0.4s ease;
}
.grow-frame img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.grow-card:hover .grow-frame {
  border-color: var(--brand-yellow);
}
.grow-card:hover .grow-frame img {
  transform: scale(1.08);
}

.grow-name {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.35;
  transition: color 0.3s ease;
}
.grow-card:hover .grow-name {
  color: var(--brand-yellow);
}
.grow-text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .grow-frame,
  .grow-frame img,
  .grow-name {
    transition: none;
  }
}
@media (max-width: 768px) {
  .cta-strip {
    width: 100%;
  }
  .apply-btn {
    padding: 14px 30px;
    font-size: 16px;
  }
  .testi-label,
  .testi-name,
  .gx-overlay h3 {
    font-size: 18px;
  }
  .testi-quote,
  .sum-name {
    font-size: 22px;
    line-height: 30px;
  }
  .sum-list,
  .gx-caption {
    font-size: 15px;
  }
  .sum-card {
    padding: 28px;
  }
  .gx-overlay p {
    max-width: 100%;
    font-size: 14px;
  }
}

/* =====================================================================
   ENQUIRY FORM
   Mobile / tablet : inline card after the heading
   Desktop (lg+)   : fixed drawer that slides in from the right
   ===================================================================== */
.enq-drawer {
  --enq-w: clamp(20rem, 27vw, 26rem);
  position: relative;
  z-index: 2;
  align-self: center;
  width: calc(100% - 2rem);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.enq-card {
  padding: 1.5rem;
  color: #212529;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
  animation: enq-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@keyframes enq-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Side tab */
.enquiry-tab {
  width: 2.4rem;
  padding: 1.25rem 0;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-radius: 0.4rem 0 0 0.4rem;
}
.vtext {
  writing-mode: vertical-rl;
}
.enquiry-tab i {
  transition: transform 0.4s ease;
}

/* Desktop drawer */
@media (min-width: 992px) {
  .enq-drawer {
    position: fixed;
    top: 44%;
    right: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    width: auto;
    max-width: none;
    margin: 0;
    transform: translate(var(--enq-w), -50%); /* closed: only the tab shows */
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .enq-drawer.is-open {
    transform: translate(0, -50%);
  }

  .enq-card {
    width: var(--enq-w);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 1rem 0 0 1rem;
    box-shadow: -0.5rem 0 2.5rem rgba(0, 0, 0, 0.25);
    animation: none;
  }
}

/* Form look */
.enq-title {
  margin-bottom: 0.4rem;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--brand-purple);
}
.enq-sub {
  font-size: 0.8rem;
  color: #555;
}
.enq-close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  background-color: #f3f1f9;
  background-size: 0.7rem;
  border-radius: 50%;
  opacity: 1;
}
.enq-card .form-label {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1a1a;
}
.enq-card .form-control,
.enq-card .form-select {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  background-color: #f3f1f9;
  border: 0;
  border-radius: 0.75rem;
}
.enq-card .form-control::placeholder {
  color: #9a95ad;
}
.enq-card .form-control:focus,
.enq-card .form-select:focus {
  background-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(55, 30, 102, 0.25);
}
.enq-note {
  font-size: 0.7rem;
  color: #6c6c6c;
}
.text-asterisk {
  color: #dc3545;
}
.enq-card .input-group-text {
  padding-inline: 1rem;
  font-size: 0.9rem;
  color: #444;
  background-color: #f3f1f9;
  border: 0;
  border-radius: 0.75rem 0 0 0.75rem;
}
.enq-card .input-group .form-control {
  border-radius: 0 0.75rem 0.75rem 0;
}

@media (prefers-reduced-motion: reduce) {
  .enq-drawer,
  .enq-card,
  .apply-btn,
  .apply-btn img,
  .enquiry-tab i,
  .rotator .word {
    transition: none;
    animation: none;
  }
}

/* Sticky Contact Buttons */
.sticky-contact-buttons {
  position: fixed;
  right: 20px;
  bottom: 5%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sticky-contact-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.sticky-contact-buttons a i {
  font-size: 21px;
}

.sticky-whatsapp {
  background-color: #25d366;
}

.sticky-call {
  background-color: var(--brand-purple);
}

.sticky-contact-buttons a:hover {
  transform: translateY(-4px);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .sticky-contact-buttons {
    right: 12px;
    bottom: 5%;
    gap: 10px;
  }

  .sticky-contact-buttons a {
    padding: 11px 16px;
    font-size: 13px;
  }

  .sticky-contact-buttons a i {
    font-size: 19px;
  }
}
.enq-submit {
  font-size: 16px;
}
.footer-text {
  font-size: 14px;
}
.footer__chip {
  padding: 3px 7px;
  background-color: var(--brand-red);
  color: #ffffff !important;
}
.footer__code,
.footer__chip {
  font-size: 10px;
  font-weight: 600;
  color: rgb(255, 255, 255);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contact-text,
.contact-link,
.contact-bold-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.695);
}
.contact-title {
  font-size: 16px;
  font-weight: 600;
}
.contact-link,
.contact-bold-link {
  color: rgba(255, 255, 255, 0.695);
}
a {
  text-decoration: none;
}
.contact-heading {
  font-size: 18px;
}

/* ==========================================================================
   Subtle Scroll Effects & Polish
   ========================================================================== */

/* 1. Header subtle blur, shadow & shrink on scroll */
.site-header {
  transition: padding 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.site-header.is-scrolled {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16) !important;
}

/* 2. Scroll Progress Indicator Bar at Top of Viewport */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-red) 100%);
  z-index: 999999;
  pointer-events: none;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3. Subtle Parallax floating accents */
.learn-cutout,
.faq-cutout,
.grow-cutout,
.testi-strip,
.cta-strip {
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 4. Refined AOS entrance transitions (lazy, fluid & relaxed) */
[data-aos] {
  transition-duration: 1100ms !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}
[data-aos="fade-up"] {
  transform: translate3d(0, 42px, 0) !important;
}
[data-aos="fade-down"] {
  transform: translate3d(0, -42px, 0) !important;
}
[data-aos="fade-left"] {
  transform: translate3d(42px, 0, 0) !important;
}
[data-aos="fade-right"] {
  transform: translate3d(-42px, 0, 0) !important;
}
[data-aos="zoom-in"] {
  transform: scale(0.92) !important;
}
[data-aos].aos-animate {
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* 5. Subtle scroll-triggered section reveal for subpage cards */
.subpage-card {
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.subpage-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

/* 6. Respect Reduced Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  #scroll-progress {
    display: none !important;
  }
  [data-aos] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* 7. CBSE Affiliation Elements */
.cbse-top-bar {
  background: #002244;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 1.4;
}
.cbse-top-bar .badge {
  font-size: 11px;
  letter-spacing: 0.5px;
  border-radius: 4px;
}
.cbse-top-bar a.hover-underline:hover {
  text-decoration: underline !important;
}

/* Fixed Bottom-Left CBSE Badge */
.fixed-cbse-badge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 998;
  background: rgba(0, 34, 68, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(230, 16, 40, 0.85);
  border-radius: 50px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.fixed-cbse-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border-color: #e61028;
}
.fixed-cbse-badge .cbse-emblem {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #e61028, #990000);
  box-shadow: 0 2px 6px rgba(230, 16, 40, 0.5);
}
.fixed-cbse-badge .cbse-badge-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffc107;
  line-height: 1.1;
}
.fixed-cbse-badge .cbse-badge-sub {
  font-size: 11.5px;
  color: #e2e8f0;
  line-height: 1.1;
}
.fixed-cbse-badge .cbse-badge-sub strong {
  color: #ffffff;
  font-weight: 700;
}
.fixed-cbse-badge .cbse-badge-link {
  color: #ffc107;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
}
.fixed-cbse-badge:hover .cbse-badge-link {
  transform: translateX(3px);
}

@media (max-width: 576px) {
  .cbse-top-bar {
    font-size: 11.5px;
  }
  .cbse-top-bar .badge {
    font-size: 10px;
  }
  .fixed-cbse-badge {
    bottom: 16px;
    left: 14px;
    padding: 6px 10px !important;
  }
  .fixed-cbse-badge .cbse-emblem {
    width: 28px;
    height: 28px;
  }
  .fixed-cbse-badge .cbse-emblem i {
    font-size: 14px;
  }
  .fixed-cbse-badge .cbse-badge-title {
    font-size: 10px;
  }
  .fixed-cbse-badge .cbse-badge-sub {
    font-size: 10px;
  }
}
