.frosted-nav {
  backdrop-filter: blur(12px);
  background-color: rgba(25, 45, 67, 0.8);
}
#main-nav {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
#main-nav.nav-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
@media (min-width: 640px) {
  #main-nav {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}
.bubble-float {
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
.flywheel-rotate {
  animation: spin 30s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.section-blur {
  filter: blur(60px);
  opacity: 0.15;
}
.vision-oski-frame {
  position: relative;
  width: 78%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 128, 221, 0.12), rgba(11, 128, 221, 0.02) 68%, transparent 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.vision-oski-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid rgba(11, 128, 221, 0.65);
  border-radius: 50%;
  pointer-events: none;
  animation: vision-oski-pulse 4s ease-in-out infinite;
}
@keyframes vision-oski-pulse {
  0%, 100% {
    transform: scale(0.97);
    opacity: 0.65;
    box-shadow: 0 0 5px rgba(11, 128, 221, 0.1);
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 0 28px rgba(11, 128, 221, 0.32);
  }
}
@media (prefers-reduced-motion: reduce) {
  .vision-oski-frame::before { animation: none; }
}
.vision-oski-frame img {
  display: block;
  width: 76.8%;
  height: 76.8%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(25, 45, 67, 0.25));
}
.flywheel-oski {
  position: absolute;
  z-index: 20;
  display: block;
  height: 74%;
  width: auto;
  max-width: 72%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}
.join-divider-oski {
  position: absolute;
  left: 16px;
  bottom: -2px;
  z-index: 20;
  display: block;
  height: 89.25px;
  width: auto;
  pointer-events: none;
  transform: translateX(-12.3%) scaleX(1.04);
  transform-origin: left bottom;
}
.hero-excited-oski {
  position: absolute;
  top: 57px;
  left: 50%;
  z-index: 51;
  display: block;
  height: 158.4px;
  width: auto;
  pointer-events: none;
  opacity: 0;
  translate: -50% 0;
}
@media (min-width: 640px) {
  .join-divider-oski {
    left: clamp(16px, 4vw, 60px);
    bottom: -3px;
    height: clamp(130px, 25vw, 320px);
  }
  .hero-excited-oski {
    top: 68px;
    height: 264px;
  }
}
#testimonial-dots button {
  position: relative;
}
#testimonial-dots button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}
.card-glow:hover {
  box-shadow: 0 0 30px rgba(11, 128, 221, 0.2);
}
.stagger-in {
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.text-3d-5cs {
  text-shadow:
    0 1px 0 rgba(25, 45, 67, 0.85),
    0 2px 0 rgba(25, 45, 67, 0.75),
    0 3px 0 rgba(25, 45, 67, 0.65),
    0 4px 0 rgba(25, 45, 67, 0.5),
    0 5px 1px rgba(25, 45, 67, 0.4),
    0 6px 10px rgba(15, 28, 43, 0.45),
    0 -1px 0 rgba(254, 254, 254, 0.5);
}
#join-movement-toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#join-movement-toast.toast-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.grecaptcha-badge,
.g-recaptcha {
  position: fixed !important;
  right: -9999px !important;
  bottom: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  overflow: hidden !important;
}

/* Floating Action Buttons (Phone & WhatsApp) - 20% size reduction */
.whatsapp-button,
.call-button {
  position: fixed !important;
  bottom: 20px !important;
  z-index: 9999 !important;
  width: 45px !important;
  height: 45px !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.whatsapp-button iconify-icon,
.call-button iconify-icon {
  font-size: 24px !important;
  width: 24px !important;
  height: 24px !important;
}

.whatsapp-button {
  right: 20px !important;
  background-color: #25D366 !important;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35) !important;
}

.call-button {
  left: 20px !important;
  background-color: #0B80DD !important;
  box-shadow: 0 10px 20px rgba(11, 128, 221, 0.35) !important;
}

.whatsapp-button:hover {
  background-color: #20bd5a !important;
  transform: scale(1.1) !important;
}

.call-button:hover {
  background-color: #096bba !important;
  transform: scale(1.1) !important;
}

.grecaptcha-badge {
  visibility: visible !important;
  position: fixed !important;
  bottom: 75px !important;
  right: 0px !important;
  z-index: 100 !important;
}

/* Responsive layout: phone defaults, then tablet and desktop enhancements. */
:root {
  --page-gutter: clamp(1rem, 4vw, 1.5rem);
  --brand-blue: #0969b8;
  --brand-blue-light: #5db4f5;
  --brand-blue-hover: #075897;
}

/* The compiled Tailwind build has no source config in this static site. */
.text-brandBlueLight {
  color: var(--brand-blue-light);
}

/* Dark mode turns even white utility cards navy, so all blue text needs light blue. */
html[data-theme="dark"] .text-brandBlue {
  color: var(--brand-blue-light) !important;
}

.hover\:bg-brandBlue\/90:hover {
  background-color: var(--brand-blue-hover);
}

/* Blue text on navy needs the lighter token. Restore dark blue inside light cards. */
#main-nav .text-brandBlue,
section.bg-deepNavy .text-brandBlue,
footer.bg-deepNavy .text-brandBlue,
#cookie-consent-banner .text-brandBlue {
  color: var(--brand-blue-light);
}
section.bg-deepNavy .bg-white .text-brandBlue,
section.bg-deepNavy .bg-pureWhite .text-brandBlue,
section.bg-deepNavy .bg-coolGrey .text-brandBlue {
  color: var(--brand-blue);
}
#main-nav a:not(.bg-brandBlue):hover,
section.bg-deepNavy a.hover\:text-brandBlue:hover,
footer.bg-deepNavy a.hover\:text-brandBlue:hover {
  color: var(--brand-blue-light);
}

/* Inline links remain identifiable without color alone. */
p a {
  text-decoration-line: underline;
  text-underline-offset: 2px;
}
.underline { text-decoration-line: underline; }
.underline-offset-2 { text-underline-offset: 2px; }

/* Footer copy and links stay legible against navy. */
footer .pt-12 { color: rgba(255, 255, 255, 0.72); }
footer .pt-12 p.text-white\/30 { color: rgba(255, 255, 255, 0.72); }
footer .pt-12 a { color: rgba(255, 255, 255, 0.92); }
footer .pt-12 a:hover { color: #fff; }
footer p.mt-3 a { text-decoration-line: underline; text-underline-offset: 2px; }
section.bg-deepNavy p.text-white\/50 { color: rgba(255, 255, 255, 0.72); }

/* The dot remains visually small; its button is a full touch target. */
#testimonial-dots { gap: 0; }
#testimonial-dots button { min-width: 24px; min-height: 24px; }

html {
  scroll-padding-top: 4.5rem;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #0b80dd;
  outline-offset: 3px;
}

#main-content > section,
footer.bg-deepNavy {
  padding-inline: var(--page-gutter);
}

#main-content > section:not(#hero):not(#real-life-syllabus) {
  padding-block: clamp(2.75rem, 5vw, 5rem);
}

#main-content > section[id] {
  scroll-margin-top: 4.5rem;
}

#main-content .grid > *,
#main-content .flex > *,
footer .grid > * {
  min-width: 0;
}

#main-content h1,
#main-content h2,
#main-content h3 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

#main-nav {
  -webkit-backdrop-filter: blur(12px);
  transition-property: padding, background-color, box-shadow;
}

#main-nav.menu-open {
  z-index: 60;
  background-color: #192d43;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.22);
}

#mobile-menu {
  max-height: calc(100vh - 3.75rem);
  max-height: calc(100dvh - 3.75rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#mobile-menu .mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

#mobile-menu .mobile-nav-link:last-child {
  justify-content: center;
}

body.mobile-menu-open .call-button,
body.mobile-menu-open .whatsapp-button {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#hero h1 {
  font-size: clamp(2.05rem, 8vw, 2.75rem);
  line-height: 1.12;
}

#hero p {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
}

#main-content h2 {
  font-size: clamp(1.85rem, 7vw, 2.65rem);
  line-height: 1.15;
}

#about h2,
#global-coaches h2 {
  font-size: clamp(1.75rem, 6.5vw, 2.25rem);
}

#real-life-syllabus h2 {
  font-size: clamp(2rem, 8vw, 3.25rem);
}

#about p.text-xl,
#why-outsmart p.text-xl,
#real-life-syllabus p.text-2xl,
#testimonials p.text-2xl {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
}

#about > .grid,
#why-outsmart > .max-w-7xl > .grid {
  gap: 2rem;
}

#who-we-serve .grid,
#programs .grid,
#core-programs .grid,
#impact .grid {
  grid-template-columns: minmax(0, 1fr);
}

#who-we-serve .grid > div,
#core-programs .grid > div {
  padding: clamp(1.25rem, 4vw, 2rem);
}

#programs .grid > div > div {
  padding: clamp(1.25rem, 4vw, 2rem);
}

#core-programs .grid > div > div:last-child {
  flex-wrap: wrap;
  gap: 0.75rem;
}

#real-life-syllabus {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 9vw, 7rem);
}

footer .grid {
  gap: clamp(2rem, 5vw, 4rem);
}

[role="dialog"] {
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.call-button,
.whatsapp-button {
  bottom: max(1rem, env(safe-area-inset-bottom)) !important;
}

.call-button {
  left: max(1rem, env(safe-area-inset-left)) !important;
}

.whatsapp-button {
  right: max(1rem, env(safe-area-inset-right)) !important;
}

@media (min-width: 40rem) {
  html {
    scroll-padding-top: 6rem;
  }

  #main-content > section[id] {
    scroll-margin-top: 6rem;
  }

  #hero h1 {
    font-size: clamp(3.25rem, 8vw, 4.5rem);
  }

  #who-we-serve .grid,
  #impact .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  #programs .grid,
  #core-programs .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  #hero h1 {
    font-size: clamp(4.5rem, 6.7vw, 6rem);
  }

  #main-content h2 {
    font-size: clamp(2.5rem, 4vw, 3rem);
  }

  #about h2,
  #global-coaches h2 {
    font-size: 2.25rem;
  }

  #real-life-syllabus h2 {
    font-size: clamp(3.25rem, 5vw, 4.5rem);
  }

  #about > .grid {
    gap: 5rem;
  }

  #why-outsmart > .max-w-7xl > .grid {
    gap: 4rem;
  }

  #who-we-serve .grid,
  #core-programs .grid,
  #impact .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #programs .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-height: 26rem) and (orientation: landscape) {
  #hero h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .call-button,
  .whatsapp-button {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-excited-oski,
  .stagger-in {
    opacity: 1;
  }

  .bubble-float,
  .flywheel-rotate,
  .stagger-in {
    animation: none !important;
  }
}


/* Global Coaches Swipe Card Section */
#global-coaches .coach-slider-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  #global-coaches .coach-slider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4rem;
  }
}

#global-coaches .coach-slides-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  position: relative;
}

#global-coaches .coach-slide {
  grid-column: 1 / -1 !important;
  grid-row: 1 / -1 !important;
  width: 100%;
}

#global-coaches .coach-image-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  margin-left: auto;
  margin-right: auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  #global-coaches .coach-image-card {
    max-width: 380px;
  }
}

@media (min-width: 1024px) {
  #global-coaches .coach-image-card {
    max-width: 380px;
  }
}

#global-coaches .coach-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#global-coaches .coach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#global-coaches .coach-image:first-child img {
  transform: scale(1.2);
  transform-origin: center 65%;
}

#global-coaches .coach-image:last-child img {
  transform: scale(1.3);
  transform-origin: center top;
}
