/* ==========================================================================
   TESLA STUDIO — GLOBAL HIGH-CONTRAST DARK MODE + HINDI TYPOGRAPHY SYSTEM
   Audited across ALL 8 pages (index, about, classes, event, school-erp,
   contact, faq, reviews) so every single heading, paragraph, card, input,
   accordion, modal, and wave seam is 100% readable in BOTH Light & Dark Mode!
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   HINDI (DEVANAGARI) TYPOGRAPHY POLISH — ZERO BROKEN SHIRO-REKHA,
   ZERO PILL OVERLAP, BALANCED HEADING WRAPPING, CRISP BUTTON SPACING
   ========================================================================== */
html[lang="hi"] body,
html[lang="hi"] body *:not(.studio-logo):not(.studio-logo *):not(i):not(.fas):not(.far):not(.fab):not(svg):not(svg *) {
  font-family: 'Noto Sans Devanagari', 'Kohinoor Devanagari', 'Devanagari Sangam MN', system-ui, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Keep original Road Rage brand wordmark untouched */
html[lang="hi"] .studio-logo,
html[lang="hi"] .studio-logo strong,
html[lang="hi"] .studio-logo small {
  font-family: var(--studio-display, 'Road Rage', system-ui, sans-serif) !important;
}

/* Generous breathing space under kickers & badges so upper Hindi matras never touch borders */
html[lang="hi"] .sp-kicker,
html[lang="hi"] .sp-hero-kicker {
  display: inline-flex !important;
  align-items: center;
  margin: 0 0 24px !important;
  padding: 7px 18px !important;
  line-height: 1.45 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

html[lang="hi"] .sfs-strip-badge-row {
  margin-bottom: 20px !important;
  gap: 12px !important;
}

html[lang="hi"] .sfs-strip-tag {
  padding: 6px 15px !important;
  line-height: 1.4 !important;
  font-size: 0.78rem !important;
}

html[lang="hi"] .erp-label {
  display: inline-block;
  margin-bottom: 14px !important;
  line-height: 1.45 !important;
  font-size: 0.82rem !important;
}

/* Balanced, crisp Hindi headings with proper Devanagari line-height & zero orphan wrapping */
html[lang="hi"] :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 800 !important;
  line-height: 1.32 !important;
  padding-top: 0.06em;
  text-wrap: balance;
}

html[lang="hi"] .sp-hero-inner h1,
html[lang="hi"] .elementor-element-635b5e8 h1,
html[lang="hi"] #erp-title {
  font-size: clamp(2.1rem, 4vw, 3.25rem) !important;
  margin-bottom: 18px !important;
}

html[lang="hi"] .sp-sec-head h2,
html[lang="hi"] .sfs-strip-copy h3,
html[lang="hi"] .sfs-finale-header h3,
html[lang="hi"] .studio-section-heading h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.55rem) !important;
  margin-bottom: 16px !important;
}

html[lang="hi"] #app-title,
html[lang="hi"] #access-title,
html[lang="hi"] .staff-intro h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem) !important;
  line-height: 1.34 !important;
  margin-bottom: 16px !important;
}

html[lang="hi"] .mentor-bio h2 {
  font-size: clamp(2rem, 3.6vw, 3rem) !important;
  margin-bottom: 14px !important;
}

html[lang="hi"] .sfs-glass-col h4,
html[lang="hi"] .sp-age-card h3,
html[lang="hi"] .sp-class-body h3,
html[lang="hi"] .sp-track-row h3,
html[lang="hi"] .sp-step-card h3,
html[lang="hi"] .sp-timeline-card h3,
html[lang="hi"] .sp-format-card h3,
html[lang="hi"] .sfs-dock-brand h3,
html[lang="hi"] .enquiry-modal-header h3,
html[lang="hi"] .enquiry-option-info h4,
html[lang="hi"] #competition-cards.sp-comp-upgraded .competition-copy h3 {
  font-size: clamp(1.15rem, 1.85vw, 1.45rem) !important;
  line-height: 1.34 !important;
}

html[lang="hi"] .sfs-strip-copy .sfs-divider-img,
html[lang="hi"] .sp-sec-head .sfs-divider-img,
html[lang="hi"] .sp-hero-divider {
  margin-top: 8px !important;
  margin-bottom: 20px !important;
}

/* Crisp Hindi paragraphs, quotes, and card labels */
html[lang="hi"] p,
html[lang="hi"] li,
html[lang="hi"] dd {
  line-height: 1.72 !important;
}

html[lang="hi"] .sfs-playing-card-label {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

/* Clean, non-overlapping buttons & pills in Hindi */
html[lang="hi"] :is(.sfs-strip-btn-primary, .sfs-cta-main, .sfs-cta-wa, .sp-btn-gold, .sp-btn-ghost, .sp-filter-btn, .sp-class-cta, .erp-action, .elementor-button, .srfm-button, .mentor-action) {
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  padding: 11px 22px !important;
  height: auto !important;
}

html[lang="hi"] .sfs-cta-main,
html[lang="hi"] .sfs-cta-wa {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 24px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html[lang="hi"] .sfs-strip-actions,
html[lang="hi"] .sp-band-actions,
html[lang="hi"] .sfs-dock-ctas,
html[lang="hi"] .cover-actions {
  gap: 14px !important;
  margin-top: 22px !important;
}

html[lang="hi"] .sp-filter-bar {
  gap: 10px 12px !important;
}

html[lang="hi"] .sfs-strip-num,
html[lang="hi"] .sp-track-num,
html[lang="hi"] .sp-step-badge {
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

/* ==========================================================================
   COMPREHENSIVE HIGH-CONTRAST DARK MODE (html[data-theme="dark"])
   ========================================================================== */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #page,
html[data-theme="dark"] #content,
html[data-theme="dark"] #main,
html[data-theme="dark"] .sp-page-root {
  background-color: #110e22 !important;
  color: #f3f0ff !important;
}

html[data-theme="dark"] .sfs-showcase-root {
  background-color: transparent !important;
  color: #f3f0ff !important;
}

/* Top & Bottom Wave SVG Fills -> match dark surface so zero white seams appear! */
html[data-theme="dark"] .elementor-shape-fill,
html[data-theme="dark"] .campus-hero .elementor-shape-fill,
html[data-theme="dark"] #colophon .hfe-before-footer-wrap .elementor-shape-fill {
  fill: #110e22 !important;
}

/* Split Header (Transparent Floating Left Logo + Dark Right Menu Pill) in Dark Mode */
html[data-theme="dark"] #masthead.ts-pill-header .ts-nav-pill,
html[data-theme="dark"] #masthead.ts-pill-header.is-scrolled .ts-nav-pill,
html[data-theme="dark"] #masthead.ts-pill-header:not(.is-scrolled) .ts-brand-link {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] #masthead.ts-pill-header:not(.is-scrolled) .ts-menu-pill {
  --dock-surface: rgba(18, 14, 38, 0.84);
  --dock-surface-scrolled: rgba(18, 14, 38, 0.95);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.62),
    0 4px 16px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] #masthead.ts-pill-header .ts-nav-actions {
  border-left-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] #masthead.ts-pill-header .ts-nav-list .menu-link {
  color: #f1eeff !important;
}

html[data-theme="dark"] #masthead.ts-pill-header .ts-nav-list li:nth-of-type(1) .ts-nav-ico { color: #ff77b3; }
html[data-theme="dark"] #masthead.ts-pill-header .ts-nav-list li:nth-of-type(2) .ts-nav-ico { color: #c4b5fd; }
html[data-theme="dark"] #masthead.ts-pill-header .ts-nav-list li:nth-of-type(3) .ts-nav-ico { color: #67e8f9; }
html[data-theme="dark"] #masthead.ts-pill-header .ts-nav-list li:nth-of-type(4) .ts-nav-ico { color: #fcd34d; }
html[data-theme="dark"] #masthead.ts-pill-header .ts-nav-list li:nth-of-type(5) .ts-nav-ico { color: #6ee7b7; }
html[data-theme="dark"] #masthead.ts-pill-header .ts-nav-list li:nth-of-type(6) .ts-nav-ico { color: #fda4af; }

html[data-theme="dark"] .ts-mobile-drawer {
  background:
    linear-gradient(rgba(18, 14, 38, 0.95), rgba(18, 14, 38, 0.95)) padding-box,
    linear-gradient(135deg, #ea3d84, #ffaf00, #0ebe6b, #19bdc5, #8b5cf6) border-box !important;
}

html[data-theme="dark"] .ts-mobile-nav-list .menu-link {
  background: rgba(34, 28, 66, 0.85) !important;
  border-color: rgba(167, 139, 250, 0.22) !important;
  color: #f3f0ff !important;
}

html[data-theme="dark"] #masthead.ts-pill-header .ts-login-btn {
  background: rgba(25, 189, 197, 0.18) !important;
  color: #7ee8f2 !important;
}

html[data-theme="dark"] #masthead.ts-pill-header .ts-theme-btn {
  background:
    radial-gradient(circle at 44px 50%, rgba(255, 255, 255, 0.22) 0 18px, rgba(255, 255, 255, 0.14) 18.5px 27px, rgba(255, 255, 255, 0.07) 27.5px 36px, transparent 36.5px),
    #0b0c10 !important;
  border: 0 !important;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] #masthead.ts-pill-header .ts-lang-btn {
  background: linear-gradient(135deg, rgba(234, 61, 132, 0.34) 0%, rgba(255, 132, 56, 0.3) 100%) !important;
  border-color: rgba(255, 166, 102, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(234, 61, 132, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"][lang="en"] #masthead.ts-pill-header .ts-lang-btn {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.38) 0%, rgba(14, 165, 183, 0.36) 100%) !important;
  border-color: rgba(56, 189, 248, 0.48) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(14, 165, 183, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] #masthead.ts-pill-header .ts-lang-btn .ts-lang-swap {
  opacity: 0.78;
}

html[data-theme="dark"] #masthead.ts-pill-header .menu-toggle.ts-mobile-toggle {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffe082 !important;
}

html[data-theme="dark"] #masthead.ts-pill-header .ts-lang-opt {
  color: #b7aed8 !important;
}

html[data-theme="dark"] #masthead.ts-pill-header .ts-lang-opt.is-active {
  background: transparent !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .ts-mobile-drawer {
  background: rgba(22, 18, 42, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] .ts-mobile-nav-list .menu-link {
  background: #231d42 !important;
  color: #f3f0ff !important;
}

/* Home Page Dark Mode — Deep Midnight Hero & Rich Dark Workshop Strips */
html[data-theme="dark"] .home-photo-carousel::before,
html[data-theme="dark"] .elementor-element-1c65fc0::before {
  background-color: rgba(12, 9, 26, 0.72) !important;
  background-image: linear-gradient(180deg, rgba(14, 10, 32, 0.82) 0%, rgba(28, 16, 56, 0.72) 60%, rgba(17, 14, 34, 0.92) 100%) !important;
}

html[data-theme="dark"] .sfs-color-strip {
  --strip-c1: rgba(20, 14, 38, 0.88) !important;
  --strip-c2: rgba(16, 12, 32, 0.92) !important;
  --strip-c3: rgba(12, 9, 24, 0.96) !important;
}

html[data-theme="dark"] #strip-science {
  --strip-c1: rgba(54, 14, 42, 0.88) !important;
  --strip-c2: rgba(34, 12, 34, 0.92) !important;
  --strip-c3: rgba(19, 10, 28, 0.96) !important;
}

html[data-theme="dark"] #strip-robotics {
  --strip-c1: rgba(10, 42, 54, 0.88) !important;
  --strip-c2: rgba(10, 28, 42, 0.92) !important;
  --strip-c3: rgba(11, 16, 32, 0.96) !important;
}

html[data-theme="dark"] #strip-rockets {
  --strip-c1: rgba(56, 26, 12, 0.88) !important;
  --strip-c2: rgba(38, 18, 14, 0.92) !important;
  --strip-c3: rgba(20, 12, 22, 0.96) !important;
}

html[data-theme="dark"] #strip-vr {
  --strip-c1: rgba(34, 16, 62, 0.88) !important;
  --strip-c2: rgba(22, 12, 44, 0.92) !important;
  --strip-c3: rgba(13, 10, 30, 0.96) !important;
}

html[data-theme="dark"] #strip-hydro {
  --strip-c1: rgba(12, 44, 32, 0.88) !important;
  --strip-c2: rgba(10, 30, 26, 0.92) !important;
  --strip-c3: rgba(10, 18, 24, 0.96) !important;
}

html[data-theme="dark"] #strip-drama {
  --strip-c1: rgba(46, 16, 44, 0.88) !important;
  --strip-c2: rgba(28, 12, 36, 0.92) !important;
  --strip-c3: rgba(16, 10, 28, 0.96) !important;
}

html[data-theme="dark"] #strip-mud {
  --strip-c1: rgba(48, 30, 12, 0.88) !important;
  --strip-c2: rgba(32, 20, 14, 0.92) !important;
  --strip-c3: rgba(18, 12, 24, 0.96) !important;
}

html[data-theme="dark"] .sfs-glass-box {
  background: rgba(12, 10, 26, 0.62) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] .sfs-white-outro,
html[data-theme="dark"] .sp-dock-band {
  background:
    radial-gradient(rgba(255, 255, 255, 0.09) 1.1px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(180deg, #120e24 0%, #171230 100%) !important;
}

/* Deep Dark Mode Hero & Tinted Bands across Classes, Event, About, Contact, FAQ, Reviews & School ERP */
html[data-theme="dark"] .sp-hero.is-classes::before,
html[data-theme="dark"] .sp-hero.is-event::before,
html[data-theme="dark"] .sp-hero.is-about::before,
html[data-theme="dark"] .hero-parallax-carousel::before,
html[data-theme="dark"] .campus-hero::before {
  background-color: rgba(12, 9, 28, 0.82) !important;
  background-image: linear-gradient(180deg, rgba(14, 10, 32, 0.84) 0%, rgba(20, 14, 44, 0.88) 100%) !important;
}

html[data-theme="dark"] .sp-band-tint,
html[data-theme="dark"] .sp-color-band {
  --band-c1: rgba(18, 12, 38, 0.9) !important;
  --band-c2: rgba(14, 10, 30, 0.94) !important;
  --band-c3: rgba(10, 8, 22, 0.96) !important;
  background-color: #110e22 !important;
}

html[data-theme="dark"] .sp-band-tint::before,
html[data-theme="dark"] .sp-color-band::before {
  background: linear-gradient(180deg, rgba(16, 12, 34, 0.88) 0%, rgba(20, 14, 42, 0.94) 100%) !important;
}

html[data-theme="dark"] .sp-track-row,
html[data-theme="dark"] .sp-step-card,
html[data-theme="dark"] .sp-format-card {
  background: rgba(16, 13, 34, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] .sp-page-root,
html[data-theme="dark"] .sp-band-white,
html[data-theme="dark"] .studio-event-page,
html[data-theme="dark"] .studio-event-page #content,
html[data-theme="dark"] .studio-event-page #main,
html[data-theme="dark"] body.elementor-page-26,
html[data-theme="dark"] body.elementor-page-27,
html[data-theme="dark"] .elementor-element-7f6cf7b,
html[data-theme="dark"] .elementor-element-7f6cf7b::before {
  background-color: #110e22 !important;
  background-image: none !important;
}

html[data-theme="dark"] .sfs-playing-card {
  background: #1f1a38 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] .sfs-playing-card-label {
  color: #f4f1ff !important;
}

html[data-theme="dark"] .sfs-card-deck.has-center-video .sfs-playing-card.is-video-hero,
html[data-theme="dark"] .sfs-card-deck.is-grand-finale.is-fanned .sfs-playing-card.is-spotlight-video {
  background: linear-gradient(180deg, #272048 0%, #1c1735 100%) !important;
}

/* Quick Enquiry Modal Dark Mode */
html[data-theme="dark"] .enquiry-modal-content {
  background: #18132e !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] .enquiry-options-grid,
html[data-theme="dark"] .enquiry-modal-foot {
  background: #141028 !important;
  color: #b9b1dc !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .enquiry-option-card {
  background: #211b3d !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .enquiry-option-info h4 { color: #ffffff !important; }
html[data-theme="dark"] .enquiry-option-info p  { color: #cac3e8 !important; }
html[data-theme="dark"] .enquiry-arrow { background: #2e2652 !important; color: #ffe082 !important; }

/* Classes & Event Pages Dark Mode */
html[data-theme="dark"] .sp-band-white {
  background: #110e22 !important;
}

html[data-theme="dark"] .sp-band-cream {
  background: #110e22 !important;
}

html[data-theme="dark"] .sp-sec-head h2,
html[data-theme="dark"] .sp-age-card h3,
html[data-theme="dark"] .sp-class-body h3,
html[data-theme="dark"] .sp-timeline-card h3,
html[data-theme="dark"] #competition-cards.sp-comp-upgraded .competition-copy h3 {
  color: #ffffff !important;
}

html[data-theme="dark"] .sp-sec-head p,
html[data-theme="dark"] .sp-age-card p,
html[data-theme="dark"] .sp-class-body p,
html[data-theme="dark"] .sp-timeline-card p,
html[data-theme="dark"] #competition-cards.sp-comp-upgraded .competition-copy > p:not(.competition-place) {
  color: #cfc9eb !important;
}

html[data-theme="dark"] .sp-age-card,
html[data-theme="dark"] .sp-class-card,
html[data-theme="dark"] .sp-timeline-card,
html[data-theme="dark"] #competition-cards.sp-comp-upgraded .competition-card {
  background: #1c1736 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .sp-age-avatar,
html[data-theme="dark"] .sp-age-pill,
html[data-theme="dark"] .sp-class-highlights span,
html[data-theme="dark"] .sp-timeline-time,
html[data-theme="dark"] #competition-cards.sp-comp-upgraded .competition-place {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffe082 !important;
}

html[data-theme="dark"] .sp-polaroid-main,
html[data-theme="dark"] .sp-polaroid-mini,
html[data-theme="dark"] .sp-collage-card {
  background: #1f1a38 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] .sp-polaroid-cap,
html[data-theme="dark"] .sp-polaroid-mini span,
html[data-theme="dark"] .sp-collage-card figcaption {
  color: #f4f1ff !important;
}

html[data-theme="dark"] .sp-mentor-card {
  background: rgba(16, 12, 34, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .sp-partner-spotlight {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .sp-filter-btn {
  background: #1f1a38 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ece8ff !important;
}

html[data-theme="dark"] .sp-filter-btn.is-active {
  background: #ea3d84 !important;
  border-color: #ea3d84 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .sp-kicker {
  background: rgba(234, 61, 132, 0.22) !important;
  color: #ff9bc7 !important;
}

/* About, Contact, FAQ, Reviews & School ERP Dark Mode */
html[data-theme="dark"] #main .studio-content-section,
html[data-theme="dark"] #main .elementor-section:not(.elementor-element-0c25525),
html[data-theme="dark"] #main .e-con:not(.home-photo-carousel):not(.hero-parallax-carousel):not(.campus-hero),
html[data-theme="dark"] #main .studio-mentor,
html[data-theme="dark"] #main .studio-faq,
html[data-theme="dark"] #main .studio-feature-section,
html[data-theme="dark"] #main .erp-section,
html[data-theme="dark"] #main .erp-band {
  background-color: transparent !important;
  color: #f3f0ff !important;
}

html[data-theme="dark"] #main :is(h1, h2, h3, h4, h5, h6):not(.sfs-strip-num) {
  color: #ffffff !important;
}

html[data-theme="dark"] #main :is(p, li, dd, td, th, label, .elementor-widget-text-editor, .elementor-image-box-description, .elementor-testimonial-content, .elementor-testimonial-name, .elementor-testimonial-job, .mentor-bio p, .studio-faq p, .studio-faq summary, .demo-context) {
  color: #dcd6f5 !important;
}

html[data-theme="dark"] #main .mentor-bio blockquote {
  color: #ffe082 !important;
  border-left-color: #ffbe2e !important;
}

html[data-theme="dark"] #main .mentor-portrait {
  background: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.6px) 0 0 / 12px 12px, #231d42 !important;
}

html[data-theme="dark"] #main .mentor-label,
html[data-theme="dark"] #main .elementor-icon-box-title,
html[data-theme="dark"] #main .elementor-tab-title,
html[data-theme="dark"] #main .elementor-tab-title a {
  color: #ffd97d !important;
}

html[data-theme="dark"] #main a:not([class]) {
  color: #7ee8f2 !important;
}

/* Cards, Accordions, Reviews, Contact Form & ERP Panels in Dark Mode */
html[data-theme="dark"] #main :is(.elementor-accordion-item, .elementor-testimonial-wrapper, .studio-faq details, .contact-card, .product-demo, .published-list article, .erp-card, .erp-role-card, .erp-feature-card, .erp-panel, [data-reveal="card"]:not(.sfs-color-strip):not(.sp-class-card):not(.sp-age-card)) {
  background-color: #1c1736 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f3f0ff !important;
}

html[data-theme="dark"] #main .elementor-accordion .elementor-tab-content {
  background: #231d42 !important;
  color: #e3defa !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] #main :is(input, textarea, select) {
  background: #211b3d !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="dark"] #main :is(input::placeholder, textarea::placeholder) {
  color: #a9a0cf !important;
}

html[data-theme="dark"] #main .elementor-divider-separator {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] #main img[src*="divider-01-free-img.png"] {
  filter: invert(1) brightness(1.8);
}

/* Keep School ERP & Contact cards 100% high-contrast in dark mode */
html[data-theme="dark"] .erp-hero-wave path {
  fill: #110e22 !important;
}

html[data-theme="dark"] #staff-app .staff-showcase,
html[data-theme="dark"] #staff-app .staff-stage,
html[data-theme="dark"] .staff-showcase .staff-stage {
  background: linear-gradient(155deg, #1d1738 0%, #15112a 100%) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] #staff-app .staff-stage::before,
html[data-theme="dark"] #staff-app .staff-stage::after {
  background: transparent !important;
}

html[data-theme="dark"] .school-erp .access-band,
html[data-theme="dark"] #school-access.access-band,
html[data-theme="dark"] .access-band {
  background: #15112a !important;
  background-image: none !important;
}

html[data-theme="dark"] .staff-visit,
html[data-theme="dark"] .access-enquire,
html[data-theme="dark"] #staff-app .erp-label {
  color: #7ee8f2 !important;
}

html[data-theme="dark"] #main .contact-box-card .card-brand-title,
html[data-theme="dark"] #main .contact-box-card .card-address-line,
html[data-theme="dark"] #main .contact-box-card .elementor-icon-list-text {
  color: #f3f0ff !important;
}

html[data-theme="dark"] #main .contact-box-card .contact-email-link {
  color: #7ee8f2 !important;
}

html[data-theme="dark"] #main .contact-box-card .contact-phone-link {
  background: rgba(25, 189, 197, 0.18) !important;
  color: #ffffff !important;
  border: 1px solid rgba(25, 189, 197, 0.35) !important;
}

html[data-theme="dark"] #main .contact-box-card .contact-map-btn {
  background: rgba(234, 61, 132, 0.24) !important;
  color: #ff9bc7 !important;
  border: 1px solid rgba(234, 61, 132, 0.42) !important;
}

html[data-theme="dark"] #main .contact-box-card .contact-hours-badge,
html[data-theme="dark"] #main .contact-box-card .card-hours-badge,
html[data-theme="dark"] #main .contact-box-card .card-hours-pill,
html[data-theme="dark"] #main .contact-box-card [class*="hours"] {
  background: rgba(255, 175, 0, 0.22) !important;
  color: #ffe082 !important;
  border-color: rgba(255, 190, 46, 0.35) !important;
}

html[data-theme="dark"] #main .contact-box-card [class*="closed"] {
  color: #fda4af !important;
}

html[data-theme="dark"] .erp-screen-bar,
html[data-theme="dark"] .erp-demo-controls button:not(.is-active),
html[data-theme="dark"] .school-erp .demo-controls button:not([aria-pressed="true"]),
html[data-theme="dark"] .school-erp .module-tabs button:not([aria-selected="true"]) {
  background: #231d42 !important;
  color: #f1eeff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Fix remaining School ERP, Contact & FAQ Dark Mode contrasts */
html[data-theme="dark"] .access-layout,
html[data-theme="dark"] .access-layout:has(.access-demo),
html[data-theme="dark"] .product-stage .theme-screens .screen-link,
html[data-theme="dark"] .school-erp .module-explorer,
html[data-theme="dark"] .school-erp .report-desk {
  background: #1b1634 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f3f0ff !important;
}

html[data-theme="dark"] .school-erp .access-copy h2,
html[data-theme="dark"] .school-erp .access-copy p,
html[data-theme="dark"] .school-erp .erp-label {
  color: #f3f0ff !important;
}

html[data-theme="dark"] #main .contact-box-card,
html[data-theme="dark"] .elementor-23 .elementor-element.contact-box-card {
  background: #1c1736 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] #main .contact-box-card .contact-weekend-status,
html[data-theme="dark"] .contact-weekend-status {
  color: #fda4af !important;
}

html[data-theme="dark"] #main .contact-box-card .card-soft-separator {
  background: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .srfm-form-container,
html[data-theme="dark"] .srfm-form-container .srfm-form {
  background: transparent !important;
  color: #f3f0ff !important;
}

html[data-theme="dark"] .srfm-form-container .srfm-input-common {
  background-color: #211b3d !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* FAQ Toggle Questions & Answers in Dark Mode */
html[data-theme="dark"] .elementor-toggle .elementor-tab-title,
html[data-theme="dark"] .elementor-toggle .elementor-tab-title a,
html[data-theme="dark"] .elementor-toggle .elementor-toggle-title {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] .elementor-toggle .elementor-tab-title.elementor-active,
html[data-theme="dark"] .elementor-toggle .elementor-tab-title.elementor-active a,
html[data-theme="dark"] .elementor-toggle .elementor-tab-title.elementor-active .elementor-toggle-icon {
  color: #ff8bc0 !important;
}

html[data-theme="dark"] .elementor-toggle .elementor-toggle-icon,
html[data-theme="dark"] .elementor-toggle .elementor-toggle-icon svg {
  color: #ffd97d !important;
  fill: #ffd97d !important;
}

html[data-theme="dark"] .elementor-toggle .elementor-tab-content {
  background: #1c1736 !important;
  color: #e3defa !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  border-radius: 0 0 12px 12px;
}

/* Ensure WhatsApp CTA & Gold CTA buttons keep dark readable ink on their bright pills */
html[data-theme="dark"] #main .sfs-cta-wa {
  color: #0b2b18 !important;
}

html[data-theme="dark"] #main .sfs-strip-btn-primary,
html[data-theme="dark"] #main .sfs-cta-main,
html[data-theme="dark"] #main .sp-btn-gold {
  color: #1c1430 !important;
}

html[data-theme="dark"] .sp-filter-bar .sp-filter-btn:not(.is-active) {
  background: #1f1a38 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f1eeff !important;
}

html[data-theme="dark"] .elementor-shape-top .elementor-shape-fill,
html[data-theme="dark"] .elementor-shape-bottom .elementor-shape-fill {
  fill: #110e22 !important;
}
