/* Static-site layout repairs and universal design consistency: shared by every page. */

/* ==========================================================================
   01. GLOBAL BANNER TICKER & EXCLUSIONS
   ========================================================================== */
.banner-ticker {
  width: calc(100% - 3rem);
  max-width: 1872px;
  margin-inline: auto;
  border-inline: 1px solid rgba(190, 212, 235, .75);
}

@media (max-width: 639px) {
  .banner-ticker {
    width: calc(100% - 2rem);
  }
}

/* Fixed School Labs artwork, independent from the first homepage slider. */
#school-labs-hero {
  background-color: #e9f4fc !important;
  background-image: url("Banners/school-labs-static-desktop.webp") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

#school-labs-hero .hero-scene {
  /* Keep its box for the entrance coordinates while the section background
     displays the supplied banner image. */
  display: block !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
  #school-labs-hero {
    min-height: 720px !important;
    background-position: center right !important;
  }

  #school-labs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #e9f4fc 0%, rgba(233, 244, 252, .97) 40%, rgba(233, 244, 252, 0) 75%);
    pointer-events: none;
  }

  #school-labs-hero > .relative.z-10 {
    width: min(56%, 520px) !important;
    margin: 0 !important;
    padding: 3rem 1.75rem !important;
  }
}

/* ==========================================================================
   02. UNIFORM SECTION CONTAINERS & PADDING (EXCEPT BANNERS)
   ========================================================================== */
section:not(.inner-page-hero):not(#school-labs-hero) {
  width: 100% !important;
  max-width: 1920px !important;
  margin-inline: auto !important;
  padding-top: clamp(3.5rem, 5.5vw, 5.5rem) !important;
  padding-bottom: clamp(3.5rem, 5.5vw, 5.5rem) !important;
  padding-left: clamp(1rem, 4vw, 3rem) !important;
  padding-right: clamp(1rem, 4vw, 3rem) !important;
  box-sizing: border-box !important;
}

/* Ensure inner section content wraps uniformly, without clamping absolute background/overlay layers or custom split sections */
section:not(.inner-page-hero):not(#school-labs-hero):not(#composite-lab) > div:not([class*="absolute"]):not(.absolute) {
  width: 100% !important;
  max-width: 1540px !important;
  margin-inline: auto !important;
}

/* Guarantee absolute overlays and backgrounds always stretch 100% edge-to-edge of the section container */
section > div[class*="absolute"],
section > div.absolute {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* ==========================================================================
   02B. 1ST IMAGE SECTION (#composite-lab) CLEAN SPLIT LAYOUT
   ========================================================================== */
#composite-lab {
  position: relative !important;
  overflow: hidden !important;
  background-color: #ebf3fb !important;
}

#composite-lab .robot-destination {
  position: absolute !important;
  left: 5% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32vw !important;
  max-width: 540px !important;
  min-width: 280px !important;
  height: 36vw !important;
  max-height: 640px !important;
  min-height: 340px !important;
  z-index: 10 !important;
  overflow: visible !important;
  pointer-events: none !important;
}

#composite-lab .robot-destination svg {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

@media (min-width: 1024px) {
  #composite-lab > div:not(.robot-destination) {
    position: relative !important;
    z-index: 20 !important;
    width: 46% !important;
    max-width: 620px !important;
    margin-left: auto !important;
    margin-right: 6% !important;
    padding-top: 0 !important;
  }
}

#composite-lab h2,
#composite-lab h2 span {
  font-family: 'Outfit', sans-serif !important;
  color: #1D2C3E !important;
  font-weight: 600 !important;
}

#composite-lab p:not([class*="text-[#F68037]"]) {
  color: #556575 !important;
}

#composite-lab p[class*="text-[#F68037]"] {
  color: #F68037 !important;
}

/* ==========================================================================
   03. UNIFORM TYPOGRAPHY & HEADINGS (EXCEPT BANNERS)
   ========================================================================== */
/* Section Eyebrow Badges */
section:not(.inner-page-hero):not(#school-labs-hero) span[class*="tracking-wider"][class*="uppercase"],
section:not(.inner-page-hero):not(#school-labs-hero) div[class*="tracking-wider"][class*="uppercase"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  padding: 0.35rem 0.875rem !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 9999px !important;
  line-height: 1.25 !important;
}

/* Section H2 Headings (Only for standard light sections) */
section:not(.inner-page-hero):not(#school-labs-hero):not(#mentorpro-section):not(#final-cta):not([class*="text-white"]):not([class*="bg-[#1D2C3E]"]):not([class*="bg-[#0"]):not([class*="bg-[#070D17]"]) h2:not([class*="text-white"]) {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem) !important;
  font-weight: 300 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  color: #1D2C3E !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.75rem !important;
}

section:not(.inner-page-hero):not(#school-labs-hero):not(#mentorpro-section):not(#final-cta):not([class*="text-white"]):not([class*="bg-[#1D2C3E]"]):not([class*="bg-[#0"]):not([class*="bg-[#070D17]"]) h2:not([class*="text-white"]) span:not([class*="text-white"]),
section:not(.inner-page-hero):not(#school-labs-hero):not(#mentorpro-section):not(#final-cta):not([class*="text-white"]):not([class*="bg-[#1D2C3E]"]):not([class*="bg-[#0"]):not([class*="bg-[#070D17]"]) h2:not([class*="text-white"]) strong:not([class*="text-white"]) {
  font-weight: 700 !important;
  color: #1D2C3E !important;
}

/* Section Lead / Description Paragraphs (Only for standard light sections) */
section:not(.inner-page-hero):not(#school-labs-hero):not(#mentorpro-section):not(#final-cta):not([class*="text-white"]):not([class*="bg-[#1D2C3E]"]):not([class*="bg-[#0"]):not([class*="bg-[#070D17]"]) > div > div > p:not([class*="text-white"]):not([class*="text-slate-"]),
section:not(.inner-page-hero):not(#school-labs-hero):not(#mentorpro-section):not(#final-cta):not([class*="text-white"]):not([class*="bg-[#1D2C3E]"]):not([class*="bg-[#0"]):not([class*="bg-[#070D17]"]) .max-w-3xl > p:not([class*="text-white"]):not([class*="text-slate-"]),
section:not(.inner-page-hero):not(#school-labs-hero):not(#mentorpro-section):not(#final-cta):not([class*="text-white"]):not([class*="bg-[#1D2C3E]"]):not([class*="bg-[#0"]):not([class*="bg-[#070D17]"]) .max-w-2xl > p:not([class*="text-white"]):not([class*="text-slate-"]) {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem) !important;
  line-height: 1.65 !important;
  color: #556575 !important;
  max-width: 50rem !important;
  margin-top: 0.5rem !important;
}

/* Card Headings (H3 / H4) - Strictly for light background cards */
section:not(.inner-page-hero):not(#school-labs-hero) [class*="rounded-"]:not([class*="bg-[#121D2A]"]):not([class*="bg-slate-900"]):not([class*="bg-[#1D2C3E]"]) h3:not(.text-white):not([class*="text-white"]),
section:not(.inner-page-hero):not(#school-labs-hero) [class*="rounded-"]:not([class*="bg-[#121D2A]"]):not([class*="bg-slate-900"]):not([class*="bg-[#1D2C3E]"]) h4:not(.text-white):not([class*="text-white"]) {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #1D2C3E !important;
}

/* Card Body Paragraphs - Strictly for light cards */
section:not(.inner-page-hero):not(#school-labs-hero) [class*="rounded-"]:not([class*="bg-[#121D2A]"]):not([class*="bg-slate-900"]):not([class*="bg-[#1D2C3E]"]) p:not([class*="text-[10px]"]):not([class*="text-[11px]"]):not([class*="uppercase"]):not([class*="text-slate-"]):not([class*="text-white"]) {
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
  color: #556575 !important;
}

/* ==========================================================================
   03B. RESTORE ORIGINAL TEXT COLORS ON LIGHT BLUE (#EBF3FB) BACKGROUNDS
   ========================================================================== */
[class*="bg-[#EBF3FB]"],
#footer-section,
#footer-section [class*="bg-[#EBF3FB]"],
#guidance-section {
  color: #1D2C3E !important;
}

[class*="bg-[#EBF3FB]"] h2,
[class*="bg-[#EBF3FB]"] h3,
[class*="bg-[#EBF3FB]"] h4,
#footer-section h3,
#footer-section h4,
#guidance-section h2,
#guidance-section [role="button"] h3,
#guidance-section button h3 {
  color: #1D2C3E !important;
}

[class*="bg-[#EBF3FB]"] p,
#footer-section p:not([class*="text-[#F68037]"]),
#footer-section button:not([class*="bg-[#F68037]"]):not([class*="from-[#F78239]"]),
#footer-section a,
#footer-section li,
#guidance-section p {
  color: #556575 !important;
}

#footer-section p[class*="text-[#F68037]"],
[class*="bg-[#EBF3FB]"] p[class*="text-[#F68037]"] {
  color: #F68037 !important;
}

/* ==========================================================================
   03C. WHITE TEXT ON DARK BLUE BACKGROUNDS (SCREENSHOTS 2, 3, 4)
   ========================================================================== */
/* Image 2: MentorPro Teacher Capability Section (#mentorpro-section) */
#mentorpro-section,
#mentorpro-section > div,
#mentorpro-section .max-w-2xl,
#mentorpro-section .max-w-3xl {
  color: #ffffff !important;
}

#mentorpro-section h2,
#mentorpro-section h2 *,
#mentorpro-section h2 span {
  color: #ffffff !important;
  font-weight: 500 !important;
}

#mentorpro-section p,
#mentorpro-section div > p {
  color: #f1f5f9 !important;
}

#mentorpro-section span[class*="text-[#F68037]"] {
  color: #F68037 !important;
}

/* Image 3: Final CTA Section (#final-cta & bg-[#1D2C3E]) */
#final-cta,
#final-cta > div,
section[id*="final-cta"],
section[class*="bg-[#1D2C3E]"] {
  color: #ffffff !important;
}

#final-cta h2,
#final-cta h2 *,
#final-cta h2 span,
section[id*="final-cta"] h2,
section[id*="final-cta"] h2 *,
section[class*="bg-[#1D2C3E]"] h2,
section[class*="bg-[#1D2C3E]"] h2 * {
  color: #ffffff !important;
  font-weight: 400 !important;
}

#final-cta p,
#final-cta div > p,
section[id*="final-cta"] p,
section[class*="bg-[#1D2C3E]"] p {
  color: #f1f5f9 !important;
}

/* Image 4: All Dark CTA Banners (About page, Solutions, Curriculum, etc.) - Only dark background sections */
section:not(.bg-white):not([class*="bg-white"]):not([class*="bg-[#EBF3FB]"]):has([class*="from-[#0"]):not(#cbse):not(#icse):not(#state-board) h2,
section:not(.bg-white):not([class*="bg-white"]):not([class*="bg-[#EBF3FB]"]):has([class*="from-[#0"]):not(#cbse):not(#icse):not(#state-board) h2 *,
section:not(.bg-white):not([class*="bg-white"]):not([class*="bg-[#EBF3FB]"]):has([class*="from-[#1"]):not(#cbse):not(#icse):not(#state-board) h2,
section:not(.bg-white):not([class*="bg-white"]):not([class*="bg-[#EBF3FB]"]):has([class*="from-[#1"]):not(#cbse):not(#icse):not(#state-board) h2 *,
section:not(.bg-white):not([class*="bg-white"]):not([class*="bg-[#EBF3FB]"]):has(.bg-gradient-to-r):not(#cbse):not(#icse):not(#state-board) h2,
section:not(.bg-white):not([class*="bg-white"]):not([class*="bg-[#EBF3FB]"]):has(.bg-gradient-to-r):not(#cbse):not(#icse):not(#state-board) h2 *,
section.text-white h2,
section.text-white h2 *,
section[class*="text-white"] h2,
section[class*="text-white"] h2 * {
  color: #ffffff !important;
  font-weight: 400 !important;
}

section:not(.bg-white):not([class*="bg-white"]):not([class*="bg-[#EBF3FB]"]):has([class*="from-[#0"]):not(#cbse):not(#icse):not(#state-board) p,
section:not(.bg-white):not([class*="bg-white"]):not([class*="bg-[#EBF3FB]"]):has([class*="from-[#1"]):not(#cbse):not(#icse):not(#state-board) p,
section:not(.bg-white):not([class*="bg-white"]):not([class*="bg-[#EBF3FB]"]):has(.bg-gradient-to-r):not(#cbse):not(#icse):not(#state-board) p,
section.text-white p,
section[class*="text-white"] p,
section:not(.bg-white):not([class*="bg-white"]):not([class*="bg-[#EBF3FB]"]):has([class*="from-[#0"]):not(#cbse):not(#icse):not(#state-board) div > p,
section:not(.bg-white):not([class*="bg-white"]):not([class*="bg-[#EBF3FB]"]):has([class*="from-[#1"]):not(#cbse):not(#icse):not(#state-board) div > p {
  color: #f1f5f9 !important;
}

/* Guidance Showcase Card Photo Overlay (title directly on dark photo) */
#guidance-section [class*="bg-gradient-to-t"] ~ div h3,
#guidance-section [class*="bg-gradient-to-t"] ~ div h3 span,
#guidance-section [class*="bg-gradient-to-t"] ~ div h3 *,
#guidance-section [class*="bg-gradient-to-t"] ~ div p {
  color: #ffffff !important;
}

/* Text belongs to the dark photo overlay, not to every panel in the grid. */
#stempro .grid > div:has(> img) > .relative.z-10 h4,
#stempro .grid > div:has(> img) > .relative.z-10 p {
  color: #ffffff !important;
}

#stempro .grid > div:has(> img) > [class*="bg-gradient-to-t"] {
  background: linear-gradient(to top, rgba(9, 22, 38, .96) 0%, rgba(9, 22, 38, .72) 42%, transparent 82%) !important;
}

/* STEMPro needs room for photo captions and the learning-outcomes list.
   Three columns at the md breakpoint compress all three into narrow strips. */
@media (min-width: 768px) and (max-width: 1023px) {
  body.reimagined-page .grid.md\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.reimagined-page .grid.md\:grid-cols-3 > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  #stempro .grid.md\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #stempro .grid.md\:grid-cols-3 > :last-child {
    grid-column: 1 / -1;
    min-height: 0 !important;
  }
}

/* The AI elective is an opaque white inset card over a photograph. */
#ai-lab .absolute.bottom-6[class*="bg-white"] {
  align-items: flex-start !important;
  gap: 1rem !important;
}

#ai-lab .absolute.bottom-6[class*="bg-white"] > div:first-child {
  min-width: 0 !important;
}

#ai-lab .absolute.bottom-6[class*="bg-white"] h4 {
  color: #1D2C3E !important;
}

#ai-lab .absolute.bottom-6[class*="bg-white"] p {
  color: #475569 !important;
}

/* Featured Spotlight & Gallery Dark Image Cards (e.g. Automatic Braking Car Project) */
[class*="bg-[#121D2A]"] h3,
[class*="bg-[#121D2A]"] h3 *,
[class*="bg-[#121D2A]"] h4,
[class*="bg-[#121D2A]"] h4 *,
[class*="bg-[#121D2A]"] span[class*="text-slate-200"],
[class*="bg-[#121D2A]"] span[class*="text-white"],
h3.text-white,
h3[class*="text-white"],
h4.text-white,
h4[class*="text-white"],
[class*="bg-gradient-to-t"] ~ div h3,
[class*="bg-gradient-to-t"] ~ div h4 {
  color: #ffffff !important;
}

/* ==========================================================================
   04. UNIFORM CARD STYLING & SIZES (EXCEPT BANNERS)
   ========================================================================== */
/* Standardize card radius and border */
section:not(.inner-page-hero):not(#school-labs-hero) .rounded-2xl,
section:not(.inner-page-hero):not(#school-labs-hero) .rounded-3xl,
section:not(.inner-page-hero):not(#school-labs-hero) .rounded-\[28px\],
section:not(.inner-page-hero):not(#school-labs-hero) .rounded-\[34px\] {
  border-radius: 1.375rem !important;
  border: 1px solid rgba(190, 212, 235, 0.8) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
}

/* Consistent subtle card hover lift */
section:not(.inner-page-hero):not(#school-labs-hero) .group:hover,
section:not(.inner-page-hero):not(#school-labs-hero) .hover\:shadow-md:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px rgba(29, 44, 62, 0.08) !important;
  border-color: rgba(246, 128, 55, 0.45) !important;
}

/* Preserve the wide-desktop showcase proportions. Compact desktops use
   content-matched image heights in content-reimagined.css. */
@media (min-width: 1600px) {
  :is(.grid.grid-cols-1.lg\:grid-cols-12.items-center:has(>.lg\:col-span-6.relative[class*=aspect-]),
      .grid.grid-cols-1.lg\:grid-cols-12.items-center:has(>.lg\:col-span-5.relative[class*=aspect-])) {
    align-items: center !important;
  }

  .grid.grid-cols-1.lg\:grid-cols-12.items-center > .lg\:col-span-6.relative[class*=aspect-],
  .grid.grid-cols-1.lg\:grid-cols-12.items-center > .lg\:col-span-5.relative[class*=aspect-] {
    align-self: auto !important;
    aspect-ratio: 16 / 10 !important;
    max-height: 480px !important;
    border-radius: 1.375rem !important;
    overflow: hidden !important;
  }
}

/* Standardize card media styling across grids */
section:not(.inner-page-hero):not(#school-labs-hero) .grid [class*="aspect-"] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Uniform Glass Overlay Badges inside Showcase Images (only white/frosted badges, never dark text overlays) */
section:not(.inner-page-hero):not(#school-labs-hero) [class*="absolute bottom-"][class*="bg-white"],
section:not(.inner-page-hero):not(#school-labs-hero) [class*="absolute bottom-"][class*="backdrop-blur"]:not([class*="text-white"]):not(:has(.text-white)) {
  border-radius: 1rem !important;
  backdrop-filter: blur(12px) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   05. UNIFORM BUTTON & CTA SIZING (ACROSS ENTIRE WEBSITE)
   ========================================================================== */
/* Primary Orange Gradient Buttons */
button[class*="from-\[#F78239\]"]:is([class*="py-3"], [class*="py-4"]),
button[class*="from-\[#F68037\]"]:is([class*="py-3"], [class*="py-4"]),
button[class*="bg-\[#F68037\]"]:is([class*="py-3"], [class*="py-4"]),
.btn-primary {
  min-height: 3rem !important;
  padding: 0.75rem 1.75rem !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.625rem !important;
  box-shadow: 0 4px 18px rgba(246, 128, 55, 0.35) !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  color: #ffffff !important;
  background: #f68037 !important;
  max-width: 100% !important;
  white-space: normal !important;
  text-align: center !important;
}

button[class*="from-\[#F78239\]"] span,
button[class*="from-\[#F68037\]"] span,
button[class*="bg-\[#F68037\]"] span,
.btn-primary span {
  color: inherit !important;
}

#footer-section button[class*="from-[#F78239]"],
#footer-section button[class*="bg-[#F68037]"] {
  color: #ffffff !important;
}

button[class*="from-\[#F78239\]"]:is([class*="py-3"], [class*="py-4"]):hover,
button[class*="from-\[#F68037\]"]:is([class*="py-3"], [class*="py-4"]):hover,
button[class*="bg-\[#F68037\]"]:is([class*="py-3"], [class*="py-4"]):hover,
.btn-primary:hover {
  box-shadow: 0 6px 26px rgba(246, 128, 55, 0.5) !important;
  transform: translateY(-1px) !important;
}

/* Full-size secondary actions use the reference navy pill. */
button[class*="border-\[#BED4EB\]"]:is([class*="py-3"], [class*="py-4"]):not([aria-pressed]):not([class*="bg-\[#1D2C3E\]"]):not([class*="from-\[#F78239\]"]):not([class*="bg-\[#F68037\]"]),
.btn-secondary {
  min-height: 3rem !important;
  padding: 0.75rem 1.625rem !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  background: #1d2c3e !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid #1d2c3e !important;
  box-shadow: 0 4px 14px rgba(29, 44, 62, .16) !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  max-width: 100% !important;
  white-space: normal !important;
  text-align: center !important;
}

button[class*="border-\[#BED4EB\]"][class*="bg-white"] span,
.btn-secondary span {
  color: inherit !important;
}

/* White controls on the site's pale blue sections need an ink label. */
button.bg-white,
a.bg-white {
  color: #1D2C3E !important;
}

button.bg-white > span,
a.bg-white > span {
  color: inherit !important;
}

button.bg-white[class*="hover:text-white"]:hover,
a.bg-white[class*="hover:text-white"]:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

button[class*="border-[#BED4EB]"][class*="hover:bg-[#1D2C3E]"]:hover {
  background: #1d2c3e !important;
  border-color: #1d2c3e !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Keep the glyph visible inside orange circular actions. */
[class*="bg-\[#F68037\]"] > svg {
  color: #ffffff !important;
  stroke: currentColor !important;
}

button[class*="border-\[#BED4EB\]"]:is([class*="py-3"], [class*="py-4"]):not([aria-pressed]):not([class*="bg-\[#1D2C3E\]"]):not([class*="from-\[#F78239\]"]):not([class*="bg-\[#F68037\]"]):hover,
.btn-secondary:hover {
  background: #2b4055 !important;
  border-color: #2b4055 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: translateY(-1px) !important;
}

/* Dark Navy Action Buttons */
button[class*="bg-\[#1D2C3E\]"]:is([class*="py-3"], [class*="py-4"]) {
  min-height: 3rem !important;
  padding: 0.75rem 1.75rem !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.625rem !important;
  color: #ffffff !important;
  background-color: #1d2c3e !important;
  box-shadow: 0 4px 14px rgba(29, 44, 62, .16) !important;
  max-width: 100% !important;
  white-space: normal !important;
  text-align: center !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

button[class*="bg-\[#1D2C3E\]"]:is([class*="py-3"], [class*="py-4"])[class*="hover:bg-[#F68037]"]:hover {
  background-color: #F68037 !important;
  transform: translateY(-1px) !important;
}

/* Uniform Icon Sizes */
button svg,
.btn-primary svg,
.btn-secondary svg {
  width: 1rem !important;
  height: 1rem !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   09. FOR SCHOOLS PAGE - CBSE HEADER & COMPLIANCE BOX LAYOUT
   ========================================================================== */
.cbse-header-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 2.5rem !important;
  width: 100% !important;
}

@media (max-width: 1023px) {
  .cbse-header-row {
    flex-direction: column !important;
  }
}

.cbse-header-text {
  flex: 1 1 0% !important;
  width: auto !important;
  max-width: 980px !important;
  min-width: 0 !important;
}

.cbse-header-text h2 {
  max-width: 100% !important;
  white-space: normal !important;
}

#cbse p,
#cbse .cbse-header-text p,
.cbse-header-text p,
[id="cbse"] p,
#icse p,
[id="icse"] p,
#state-board p,
[id="state-board"] p {
  color: #1E293B !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  max-width: 100% !important;
  opacity: 1 !important;
  display: block !important;
}

.cbse-compliance-box {
  width: 290px !important;
  max-width: 290px !important;
  min-width: 280px !important;
  flex-shrink: 0 !important;
  background-color: #EBF3FB !important;
  border: 1px solid #BED4EB !important;
  border-radius: 1rem !important;
  padding: 1.25rem !important;
  box-sizing: border-box !important;
}

@media (max-width: 639px) {
  .cbse-compliance-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

#cbse .cbse-compliance-box p,
.cbse-compliance-box p {
  color: #334155 !important;
  font-size: 0.72rem !important;
  line-height: 1.5 !important;
  opacity: 1 !important;
}

/* Match section image height to content height across CBSE, ICSE, and State Board */
.cbse-image-container,
.icse-image-container,
.state-image-container {
  position: relative !important;
  height: 100% !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

.cbse-image-container img,
.icse-image-container img,
.state-image-container img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.cbse-spec-box,
.icse-spec-box,
.state-spec-box,
.cbse-image-container > div:last-child,
.icse-image-container > div:last-child,
.state-image-container > div:last-child {
  margin: 1.5rem !important;
  border-radius: 1.25rem !important;
}

@media (max-width: 639px) {
  .cbse-spec-box,
  .icse-spec-box,
  .state-spec-box,
  .cbse-image-container > div:last-child,
  .icse-image-container > div:last-child,
  .state-image-container > div:last-child {
    margin: 1rem !important;
    border-radius: 1rem !important;
  }
}

/* Content and spacing must remain usable at narrow device widths. */
section .grid > *,
section [class*="grid-cols-"] > *,
section .flex > * {
  min-width: 0;
}

section :is(h1, h2, h3, h4, p)[class*="line-clamp-"],
section :is(h1, h2, h3, h4, p).truncate {
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  max-height: none !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

section :is(h1, h2, h3, h4, p) {
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  section:not(.inner-page-hero):not(#school-labs-hero) {
    padding-block: clamp(2.75rem, 9vw, 3.5rem) !important;
  }

  section .grid {
    row-gap: clamp(1rem, 4vw, 1.5rem);
  }

  section :is(button, a[class*="rounded-full"]) {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  #ai-lab .group:has(> img):has(> .absolute.bottom-6) {
    aspect-ratio: auto !important;
    min-height: clamp(350px, 105vw, 440px) !important;
  }

  #ai-lab .absolute.bottom-6[class*="bg-white"] {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem !important;
    padding: 1rem !important;
  }

  /* Inline 100% heights on board cards have no reliable auto-row height. */
  .cbse-image-container,
  .icse-image-container,
  .state-image-container {
    height: auto !important;
    min-height: clamp(320px, 95vw, 430px) !important;
  }

  #icse .flex.items-center.justify-between {
    flex-wrap: wrap;
    gap: .5rem;
  }
}

@media (max-width: 1023px) {
  #school-labs-hero [class~="sm:whitespace-nowrap"] {
    white-space: normal !important;
  }
}

/* Keep the mobile homepage copy above the supplied portrait banner. */
@media (max-width: 767px) {
  #school-labs-hero {
    min-height: clamp(780px, calc(680px + 30vw), 840px) !important;
    max-height: none !important;
    border-radius: 24px 24px 0 0 !important;
    background-image: url("Banners/school-labs-static-mobile.webp") !important;
    background-size: 100% auto !important;
    background-position: center bottom !important;
    align-items: flex-start !important;
  }

  #school-labs-hero > .relative.z-10 {
    margin-block: 0 !important;
    padding-top: 6rem !important;
    padding-bottom: 0 !important;
  }
}

/* Discipline choices scroll from the first complete pill on small screens. */
@media (max-width: 1023px) {
  #about .overflow-x-auto.no-scrollbar {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    padding-inline: .25rem !important;
    scroll-padding-inline: .25rem;
  }

  #about .overflow-x-auto.no-scrollbar > button {
    flex: 0 0 auto !important;
  }

  /* The desktop scroll film's 200vh stage leaves an empty screen on phones
     and tablets. Show the video at its natural aspect ratio there. */
  #cinematic-feature {
    height: auto !important;
    min-height: 0 !important;
  }

  #cinematic-feature > .sticky {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 1rem !important;
  }

  #cinematic-feature > .sticky > div {
    height: auto !important;
  }

  #cinematic-feature [style*="will-change"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }
}

/* Preserve the intended dark ink on pale controls and white type on orange. */
#about button.bg-\[\#F2F6FA\] {
  color: #111a24 !important;
  -webkit-text-fill-color: #111a24 !important;
}

#about button.bg-\[\#F2F6FA\] > span,
#about button.bg-\[\#F2F6FA\] > svg {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  opacity: 1 !important;
}

#about button.bg-\[\#F2F6FA\] > svg:first-child {
  color: #f68037 !important;
}

#about button.bg-\[\#F2F6FA\]:hover,
#about button.bg-\[\#F2F6FA\]:hover > svg {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

button[class*="bg-[#F68037]"],
button[class*="from-[#F78239]"] {
  -webkit-text-fill-color: #fff !important;
}

button[class*="bg-[#F68037]"] > span,
button[class*="from-[#F78239]"] > span,
button[class*="bg-[#F68037]"] > svg,
button[class*="from-[#F78239]"] > svg {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#footer-section a[aria-label] > svg {
  width: 1rem !important;
  height: 1rem !important;
  color: #1d2c3e !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

#footer-section a[aria-label]:hover > svg {
  color: #fff !important;
}

/* CTA sizing must not turn carousel dots and compact icon actions into pills. */
#hero-slider-stage button[aria-label^="Go to slide"] {
  display: block !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: .5rem !important;
  height: .5rem !important;
  padding: 0 !important;
  border: 0 !important;
}

#hero-slider-stage button[aria-label^="Go to slide"][aria-current="true"] {
  width: 1.5rem !important;
}

/* The homepage's first slider follows the inner-page phone banners: copy on
   clear blue above the people, with the supplied mobile image below. */
@media (max-width: 767px) {
  #hero-slider-stage {
    min-height: 880px !important;
    height: auto !important;
    border-radius: 24px 24px 0 0;
    background: #e9f4fc;
  }

  #hero-slider-stage .home-hero-picture {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  #hero-slider-stage .home-hero-image {
    position: absolute;
    left: auto;
    right: 0;
    bottom: 0;
    display: block;
    width: 145% !important;
    height: auto !important;
    max-width: none;
    object-fit: contain;
    transform: none;
  }

  #hero-slider-stage[data-slide="2"] .home-hero-image {
    bottom: calc(-1 * min(120vw, 500px));
  }

  #hero-slider-stage .home-hero-copy-veil {
    display: none !important;
  }

  #hero-slider-stage .home-hero-bottom-veil {
    display: none !important;
  }

  #hero-slider-stage > .relative.z-10.flex-1 {
    flex: 0 0 auto !important;
    align-items: flex-start !important;
    padding: 6.125rem 1.25rem 0 !important;
  }

  #hero-slider-stage > .relative.z-20 {
    margin-top: auto;
  }
}

@media (max-width: 359px) {
  #hero-slider-stage {
    min-height: 960px !important;
  }
}

button:is(.w-8, .w-9, .w-10, .w-11, .w-12):is(.h-8, .h-9, .h-10, .h-11, .h-12).rounded-full {
  min-height: 0 !important;
  padding: 0 !important;
  aspect-ratio: 1;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  /* Retain the desktop scroll effect with a shorter empty stage. */
  #cinematic-feature {
    height: 145vh !important;
  }
}

/* Programme chooser: the shared secondary-button rule previously centered
   its text and turned the selected row into an oversized pill. */
#guidance-section button[aria-pressed] {
  display: grid !important;
  grid-template-columns: clamp(2.5rem, 10vw, 3.5rem) minmax(0, 1fr);
  align-items: center !important;
  justify-content: start !important;
  column-gap: clamp(.85rem, 3vw, 1.4rem) !important;
  width: 100% !important;
  min-height: 5.5rem;
  padding: 1rem clamp(1rem, 3vw, 1.5rem) !important;
  border-radius: 1.5rem !important;
  text-align: left !important;
  text-transform: none !important;
  transform: none !important;
}

#guidance-section button[aria-pressed]:hover {
  transform: none !important;
}

#guidance-section button[aria-pressed] > span {
  width: auto !important;
  font-size: clamp(1.8rem, 5vw, 2.6rem) !important;
  line-height: 1 !important;
  color: #1d2c3e !important;
}

#guidance-section button[aria-pressed] > div {
  min-width: 0 !important;
  text-align: left !important;
}

#guidance-section button[aria-pressed] h3 {
  margin: 0 !important;
  font-size: clamp(.95rem, 2.4vw, 1.1rem) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  white-space: normal !important;
  color: #1d2c3e !important;
}

#guidance-section button[aria-pressed] p {
  margin: .25rem 0 0 !important;
  padding: 0 !important;
  font-size: clamp(.75rem, 1.8vw, .86rem) !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  white-space: normal !important;
  color: #556575 !important;
}

@media (max-width: 767px) {
  #guidance-section .gap-\[20px\] {
    gap: .75rem !important;
  }
}

/* Board cards: their 16:10 aspect ratio combined with a 320px minimum height
   demanded more width than a three-column track could provide. */
#boards-and-schools .grid.md\:grid-cols-2.lg\:grid-cols-3 {
  grid-auto-rows: minmax(260px, auto);
  align-items: stretch !important;
}

#boards-and-schools .grid.md\:grid-cols-2.lg\:grid-cols-3 > div {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  box-sizing: border-box !important;
}

#boards-and-schools .grid.md\:grid-cols-2.lg\:grid-cols-3 > div > img {
  display: block;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 639px) {
  #boards-and-schools .grid.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-auto-rows: minmax(220px, auto);
  }
}

/* Approach cards need the full card width for descriptions. A side-by-side
   40px arrow left an unreadably narrow text column in the four-card layout. */
#products-showcase {
  min-height: 0 !important;
  max-height: none !important;
}

#products-showcase .grid.lg\:grid-cols-4 > div > .bg-white {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: .85rem !important;
}

#products-showcase .grid.lg\:grid-cols-4 > div > .bg-white > div:first-child {
  width: 100% !important;
  padding-right: 0 !important;
}

#products-showcase .grid.lg\:grid-cols-4 > div > .bg-white > button {
  align-self: flex-end !important;
}

#products-showcase .grid.lg\:grid-cols-4 > div > .bg-white > button.bg-white {
  color: #1d2c3e !important;
  -webkit-text-fill-color: #1d2c3e !important;
}

#products-showcase .grid.lg\:grid-cols-4 > div > .bg-white > button.bg-white:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#products-showcase .grid.lg\:grid-cols-4 > div > .bg-white > button svg {
  color: currentColor !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

/* A compact desktop does not have enough room for four readable approach
   cards or three board cards alongside their full descriptions. */
@media (min-width: 1024px) and (max-width: 1399px) {
  #products-showcase .grid.lg\:grid-cols-4,
  #boards-and-schools .grid.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Keep the supplied orange/navy CTA language consistent in the header and
   in the one homepage action that previously used a pale background. */
#btn-plan-your-lab {
  min-height: 2.75rem !important;
  padding: .65rem 1.25rem !important;
  border-radius: 9999px !important;
  background: #f68037 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 5px 16px rgba(246, 128, 55, .28) !important;
}

#btn-plan-your-lab > span,
#btn-plan-your-lab > svg {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#about button.bg-\[\#F2F6FA\] {
  min-height: 3rem !important;
  padding: .75rem 1.75rem !important;
  border: 1px solid #1d2c3e !important;
  border-radius: 9999px !important;
  background: #1d2c3e !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 14px rgba(29, 44, 62, .16) !important;
}

#about button.bg-\[\#F2F6FA\] > svg:first-child {
  color: #fff !important;
}

#about button.bg-\[\#F2F6FA\]:hover {
  border-color: #f68037 !important;
  background: #f68037 !important;
}

/* Every approach-card arrow uses the same 40px orange icon action. */
#products-showcase .grid.lg\:grid-cols-4 > div > .bg-white > button,
#products-showcase .grid.lg\:grid-cols-4 > div > .bg-white > button.bg-white {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem !important;
  min-height: 2.5rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f68037 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 6px 16px rgba(246, 128, 55, .22) !important;
}

#products-showcase .grid.lg\:grid-cols-4 > div > .bg-white > button:hover {
  background: #e46e28 !important;
}

/* Remove the Plan Your Lab actions on phones; the other contact paths remain. */
@media (max-width: 767px) {
  #btn-plan-your-lab,
  #school-labs-hero button[class*="bg-[#F68037]"] {
    display: none !important;
  }
}

/* The discipline choices are filters. Show every label rather than clipping
   the last pill inside a horizontal scroller. */
@media (max-width: 1023px) {
  #about .overflow-x-auto.no-scrollbar[class*="overscroll-x-contain"] {
    display: flex !important;
    flex-wrap: wrap !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    overflow: visible !important;
    gap: .5rem !important;
    padding-inline: 0 !important;
  }

  #about .overflow-x-auto.no-scrollbar[class*="overscroll-x-contain"] > button {
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }

  /* Reserve a real destination for the travelling robot above the note. */
  #composite-lab {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 1.25rem !important;
  }

  #composite-lab .robot-destination {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: min(72vw, 320px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: min(78vw, 360px) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    transform: none !important;
    opacity: 1 !important;
    flex: none !important;
  }

  #composite-lab > div:not(.robot-destination) {
    width: 100% !important;
    min-width: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
  }
}

/* The carousel still scrolls, but each snap point shows whole cards. */
#about {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

#about .flex-1.w-full.min-w-0.overflow-hidden.relative > .flex.gap-6 {
  padding-inline: 0 !important;
  scroll-snap-type: x mandatory;
}

#about .flex-1.w-full.min-w-0.overflow-hidden.relative > .flex.gap-6 > div {
  scroll-snap-align: start;
  width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 100% !important;
}

@media (min-width: 1400px) {
  #about .flex-1.w-full.min-w-0.overflow-hidden.relative > .flex.gap-6 > div {
    width: calc((100% - 1.75rem) / 2) !important;
    flex-basis: calc((100% - 1.75rem) / 2) !important;
  }
}

/* Put the carousel controls on the card images, not under the text column. */
#about .experience-carousel {
  --experience-image-height: 360px;
}

#about .experience-carousel__arrow {
  position: absolute;
  z-index: 10;
  top: calc(var(--experience-image-height) / 2);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #bed4eb;
  border-radius: 50%;
  background: #fff;
  color: #1d2c3e;
  box-shadow: 0 4px 16px rgba(29, 44, 62, .15);
  cursor: pointer;
  transform: translateY(-50%);
}

#about .experience-carousel__arrow:hover,
#about .experience-carousel__arrow:focus-visible {
  background: #1d2c3e;
  color: #fff;
}

#about .experience-carousel__arrow--prev { left: .5rem; }
#about .experience-carousel__arrow--next { right: .5rem; }

@media (min-width: 640px) { #about .experience-carousel { --experience-image-height: 400px; } }
@media (min-width: 1024px) { #about .experience-carousel { --experience-image-height: 420px; } }
@media (min-width: 1280px) { #about .experience-carousel { --experience-image-height: 460px; } }
@media (min-width: 1536px) { #about .experience-carousel { --experience-image-height: 480px; } }

/* Curriculum-card arrows use the same orange/white action language. */
#about .flex.items-center.justify-between.mb-2 > div[aria-label^="View details"] {
  background: #f68037 !important;
  border-color: #f68037 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(246, 128, 55, .24) !important;
}

#about .flex.items-center.justify-between.mb-2 > div[aria-label^="View details"] svg {
  color: #fff !important;
  stroke: currentColor !important;
}

/* Keep the homepage curriculum carousel flat, including its hover state. */
#about .flex-1.w-full.min-w-0.overflow-hidden.relative > .flex.gap-6 > div,
#about .flex-1.w-full.min-w-0.overflow-hidden.relative > .flex.gap-6 > div:hover,
#about .flex-1.w-full.min-w-0.overflow-hidden.relative > .flex.gap-6 > div [class*="shadow"] {
  box-shadow: none !important;
}

/* The shared section width rule is too wide for this headline on laptops. */
@media (min-width: 1024px) and (max-width: 1439px) {
  #curriculum > div.relative.z-10 {
    width: min(100%, 760px) !important;
    max-width: 760px !important;
  }

  #curriculum h2 br:first-of-type {
    display: inline !important;
  }

  #curriculum h2 br:nth-of-type(2) {
    display: none !important;
  }
}

/* Homepage banners: keep copy in the clear part of the supplied artwork.
   The slider's desktop images have people on the right; a slightly smaller,
   right-aligned image creates a dependable copy area on laptop screens. */
@media (min-width: 1024px) {
  #hero-slider-stage {
    height: auto !important;
    min-height: max(94vh, 760px) !important;
    background: #e9f4fc;
  }

  #hero-slider-stage .home-hero-picture {
    display: flex !important;
    justify-content: flex-end !important;
  }

  #hero-slider-stage .home-hero-image {
    width: 85% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: right center !important;
  }

  #hero-slider-stage > .relative.z-10.flex-1 > div {
    max-width: min(36%, 30rem) !important;
  }

  #hero-slider-stage h1,
  #hero-slider-stage h2 {
    font-size: clamp(2.2rem, 3.15vw, 3rem) !important;
  }

  #hero-slider-stage h1 span,
  #hero-slider-stage h2 span {
    white-space: normal !important;
  }

  #hero-slider-stage .home-hero-copy-veil {
    display: none !important;
  }

  #school-labs-hero {
    height: auto !important;
    max-height: none !important;
  }

  #school-labs-hero > .relative.z-10 {
    width: 34% !important;
    padding-left: clamp(2rem, 4vw, 5rem) !important;
    padding-right: 1.5rem !important;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  #hero-slider-stage > .relative.z-10.flex-1 > div {
    max-width: min(39%, 27rem) !important;
  }

  #hero-slider-stage h1,
  #hero-slider-stage h2 {
    font-size: clamp(2.15rem, 3.1vw, 2.65rem) !important;
    line-height: 1.1 !important;
  }

  #hero-slider-stage h1 + div,
  #hero-slider-stage h2 + div {
    max-width: 100% !important;
    font-size: .85rem !important;
    line-height: 1.55 !important;
  }

  #school-labs-hero h2 {
    font-size: clamp(2rem, 3vw, 2.6rem) !important;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  /* The desktop photograph crops as the banner grows with longer copy.
     Protect the left reading area on compact laptop screens. */
  #school-labs-hero {
    background-position: right center !important;
  }

  #school-labs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #e9f4fc 0%, #e9f4fc 44%, rgba(233, 244, 252, 0) 68%);
    pointer-events: none;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  #school-labs-hero > .relative.z-10 {
    width: 42% !important;
  }
}

/* FAQ headings, questions and answers follow one left edge on phones. */
@media (max-width: 767px) {
  #faqs .text-center,
  #faqs :is(h2, h3, h4, p),
  #faqs button:has(> :is(h3, h4)) {
    text-align: left !important;
  }

  #faqs .text-center {
    margin-inline: 0 !important;
  }

  #faqs :is(button, div)[class*="justify-center"]:has(button) {
    justify-content: flex-start !important;
  }

  body.reimagined-curriculum details :is(summary, p),
  body.reimagined-locations #city-spotlight :is(h4, p) {
    text-align: left !important;
  }
}

/* The surrounding pale section used to force dark text even inside nested
   navy cards. Apply text contrast from the card's own surface instead. */
#root :is([class*="bg-[#1D2C3E]"], [class*="bg-[#0E1722]"], [class*="bg-[#0A121E]"], [class*="bg-[#111A24]"], [class*="bg-[#121D2A]"], [class*="bg-[#070D17]"], [class*="bg-slate-900"])
  :is(h1, h2, h3, h4, h5, p, li, strong) {
  color: #f1f5f9 !important;
}

#root :is([class*="bg-[#1D2C3E]"], [class*="bg-[#0E1722]"], [class*="bg-[#0A121E]"], [class*="bg-[#111A24]"], [class*="bg-[#121D2A]"], [class*="bg-[#070D17]"], [class*="bg-slate-900"])
  :is([class*="bg-white"], [class*="bg-[#EBF3FB]"]) :is(h1, h2, h3, h4, h5, p, li, strong) {
  color: #1d2c3e !important;
}

#root :is(.bg-white, [class*="bg-[#EBF3FB]"], [class*="bg-[#EAF1F8]"], [class*="bg-[#F2F6FA]"], [class*="bg-[#F3F6FA]"], [class*="bg-[#F4F8FC]"], [class*="bg-[#F8FAFC]"], .bg-slate-50) > :is(h1, h2, h3, h4, h5, strong) {
  color: #1d2c3e !important;
}

#root :is(.bg-white, [class*="bg-[#EBF3FB]"], [class*="bg-[#EAF1F8]"], [class*="bg-[#F2F6FA]"], [class*="bg-[#F3F6FA]"], [class*="bg-[#F4F8FC]"], [class*="bg-[#F8FAFC]"], .bg-slate-50) > :is(p, li) {
  color: #44566b !important;
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 50;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f68037;
  color: #fff;
  box-shadow: 0 5px 16px rgba(246, 128, 55, .28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover { background: #e46e28; }
.back-to-top:focus-visible { outline: 3px solid #1d2c3e; outline-offset: 3px; }

/* Place a consistent dark veil behind mobile teacher copy over photography. */
@media (max-width: 767px) {
  #mentorpro-section {
    isolation: isolate;
    background-position: 62% center !important;
  }

  #mentorpro-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(7, 13, 23, .92), rgba(7, 13, 23, .72));
    pointer-events: none;
  }

  #mentorpro-section > div {
    position: relative;
    z-index: 1;
  }
}




/* Contact updates and continuous hero rendering */
#thinkpro-whatsapp{position:fixed;right:22px;bottom:24px;width:56px;height:56px;border-radius:50%;background:#25d366;color:white;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 20px #0003;z-index:9999}#thinkpro-whatsapp svg{width:32px;height:32px}#thinkpro-whatsapp:focus-visible{outline:3px solid #1d2c3e;outline-offset:4px}
.thinkpro-office{font-style:normal;font-size:14px;line-height:1.7;margin-top:20px;color:#334155}.thinkpro-office a{color:#1d2c3e;text-decoration:underline;text-underline-offset:3px}
#hero-slider-stage .home-hero-media>div{opacity:1!important;transform:none!important}
#btn-header-contact{display:none!important}
/* Keep the teacher artwork visible on phones; it was offset below the banner. */
@media(max-width:767px){#hero-slider-stage[data-slide="2"] .home-hero-image{bottom:0!important}}
/* Reserve a visible photo panel below phone banner copy on every slide. */
@media(max-width:767px){#hero-slider-stage{min-height:1000px!important}#hero-slider-stage .home-hero-media{top:auto!important;bottom:45px!important;height:330px!important}#hero-slider-stage .home-hero-picture{inset:0!important}#hero-slider-stage .home-hero-image,#hero-slider-stage[data-slide="2"] .home-hero-image{bottom:0!important;right:0!important;width:100%!important;height:auto!important;object-fit:contain!important}#hero-slider-stage h1,#hero-slider-stage h2,#hero-slider-stage h1 span,#hero-slider-stage h2 span{opacity:1!important;transform:none!important}}
@media(max-width:767px){#hero-slider-stage .home-hero-image,#hero-slider-stage[data-slide="2"] .home-hero-image{width:145%!important}}
/* Mobile banners show each complete photo in normal flow, without a cropped viewport. */
@media(max-width:767px){#hero-slider-stage{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important}#hero-slider-stage>.relative.z-10.flex-1{order:1!important;flex:none!important;padding-bottom:28px!important}#hero-slider-stage .home-hero-media{position:relative!important;inset:auto!important;height:auto!important;width:100%!important;order:2!important}#hero-slider-stage .home-hero-media>div{position:relative!important;inset:auto!important;height:auto!important;display:block!important}#hero-slider-stage .home-hero-picture{position:relative!important;inset:auto!important;display:block!important;height:auto!important;width:100%!important;overflow:visible!important}#hero-slider-stage .home-hero-image,#hero-slider-stage[data-slide="2"] .home-hero-image{position:static!important;display:block!important;width:100%!important;max-width:100%!important;height:auto!important;object-fit:contain!important;transform:none!important}#hero-slider-stage>.relative.z-20{order:3!important;margin-top:0!important;padding-top:12px!important;padding-bottom:12px!important;background:#e9f4fc}#hero-slider-stage .home-hero-media .home-hero-copy-veil,#hero-slider-stage .home-hero-media .home-hero-bottom-veil{display:none!important}}
