/* ========== CSS VARIABLES ========== */
:root {
  /* Colors */
  --fx-blue: #0056d2;
  --fx-teal: #009688;
  --fx-orange: #ff6f00;
  --fx-dark: #0d1b2a;
  --fx-gradient: linear-gradient(90deg, var(--fx-blue), var(--fx-teal));
  --fx-radial: radial-gradient(circle at 30% 40%, rgba(0, 150, 136, .35), transparent 70%);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Container */
  --container-max-width: 1200px;
  --container-padding: clamp(15px, 4vw, 20px);

  /* Typography - Professional Google-style font stack */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.9rem;
  --font-size-lg: 1.1rem;
  --line-height-base: 1.6;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s ease;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .08);
  --shadow-md: 0 8px 18px rgba(0, 0, 0, .06);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, .12);
}

/* ========== BASE STYLES ========== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: #0d1b2a;
  overflow-x: hidden;
  padding-top: 76px;
  /* Account for fixed navbar - mobile padding handled by inline styles */
}

/* ========== ACCESSIBILITY ========== */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 2000;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: #000;
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

/* Focus states for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--fx-blue);
  outline-offset: 2px;
}

/* ========== CONTAINER & LAYOUT ========== */
.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
  box-sizing: border-box;
}

section {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1030 !important;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.navbar-brand img {
  height: 50px;
  width: auto;
  display: block;
  transition: filter var(--transition-fast);
  max-width: 100%;
}

.navbar .navbar-toggler {
  border: 0;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.navbar .nav-link {
  color: var(--fx-dark);
  padding: 0.55rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background: var(--fx-gradient);
  color: #fff !important;
  transform: translateY(-2px);
}

.navbar .nav-link.active {
  background: var(--fx-gradient);
  color: #fff !important;
  font-weight: 600;
}

.navbar .nav-link,
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .dropdown-toggle,
.navbar .dropdown-item {
  box-shadow: none !important;
  text-decoration: none !important;
}

.dropdown-menu {
  border-radius: var(--radius-md);
  padding: 0.6rem 0;
  border: 0;
  box-shadow: var(--shadow-lg);
  animation: fadeDown 0.25s ease;
}

.dropdown-item {
  padding: 0.55rem 1.1rem;
  transition: all 0.18s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--fx-gradient);
  color: #fff;
  padding-left: 1.45rem;
}

.dropdown-item.active {
  background: var(--fx-gradient);
  color: #fff !important;
  font-weight: 600;
  padding-left: 1.45rem;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HERO SECTION (Unified across all pages) ========== */
/* Goals:
   - Same height across all pages (match the smaller "contact" hero feel)
   - Same typography across all pages (even if a page has later inline CSS)
   - Left-aligned content everywhere */
html body .hero,
html body .hero-wrap,
html body .hero-train {
  position: relative;
  /* Use a safe clamp so even the longest hero (Home/Training) still shows buttons */
  min-height: clamp(500px, 70vh, 750px) !important;
  height: auto !important;
  display: flex;
  align-items: center;
  padding: 0 !important;
  margin-top: 0 !important;
  /* Body padding-top handles spacing */
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 82% 72%, rgba(0, 150, 136, 0.22), transparent 48%),
    linear-gradient(135deg, rgba(0, 86, 210, 0.82), rgba(0, 150, 136, 0.78), rgba(13, 27, 42, 0.94)),
    var(--hero-image, url('./assets/hero1.jpg'));
  background-size: 520px 520px, 620px 620px, cover, cover;
  background-position: left -120px top -120px, right -160px bottom -160px, center, center;
  background-repeat: no-repeat;
  background-blend-mode: screen, screen, multiply, normal;
  color: #fff;
  overflow: hidden;
}

html body .hero::after,
html body .hero-wrap::after,
html body .hero-train::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

html body .hero .inner,
html body .hero-wrap .inner,
html body .hero-train .inner {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(100px, 8vh, 120px) 0 clamp(60px, 6vh, 80px) 0 !important;
  align-items: flex-start !important;
  text-align: left !important;
}

html body .hero h1,
html body .hero .hero-title,
html body .hero-train h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15 !important;
  font-size: clamp(2rem, 1.75rem + 2vw, 3.05rem) !important;
  margin: 0 0 1.25rem 0 !important;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}

html body .hero p.lead,
html body .hero .hero-sub,
html body .hero-train p.lead {
  max-width: 820px;
  font-size: clamp(0.98rem, 0.92rem + 0.2vw, 1.08rem) !important;
  line-height: 1.7 !important;
  opacity: 0.98;
  font-weight: 400;
  margin: 0 0 2rem 0 !important;
  color: #ffffff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
  justify-content: flex-start;
}

.hero-badges .hb {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-badges .hb:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  align-items: center;
  justify-content: flex-start;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.85rem;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-highlight i {
  font-size: 1.05rem;
  color: #ffffff;
}

.hero-highlight span {
  font-weight: 700;
}

@media (max-width: 480px) {
  .hero-highlights {
    gap: 8px;
  }

  .hero-highlight {
    width: 100%;
    justify-content: flex-start;
  }
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: fit-content;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1rem;
}

/* ========== BUTTONS ========== */
.cta-btn,
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-base), background var(--transition-base);
  min-height: 44px;
  border: none;
  cursor: pointer;
}

/* Never underline button text (all pages / all themes) */
a.btn,
a.btn-pill,
a.btn-brand,
a.btn-contrast,
a.btn-outline,
a.btn-cta,
a.cta-btn,
button.btn,
button.btn-pill,
button.btn-brand,
button.btn-contrast,
button.btn-outline,
button.btn-cta,
button.cta-btn,
.btn-pill,
.btn-brand,
.btn-contrast,
.btn-outline,
.btn-cta,
.cta-btn {
  text-decoration: none !important;
}

a.btn:hover,
a.btn:focus,
a.btn:focus-visible,
a.btn-pill:hover,
a.btn-pill:focus,
a.btn-pill:focus-visible,
a.btn-brand:hover,
a.btn-brand:focus,
a.btn-brand:focus-visible,
a.btn-contrast:hover,
a.btn-contrast:focus,
a.btn-contrast:focus-visible,
a.btn-outline:hover,
a.btn-outline:focus,
a.btn-outline:focus-visible,
a.btn-cta:hover,
a.btn-cta:focus,
a.btn-cta:focus-visible,
a.cta-btn:hover,
a.cta-btn:focus,
a.cta-btn:focus-visible {
  text-decoration: none !important;
}

/* ========== UNIFIED CTA SECTION (ALL PAGES) ========== */
/* Use this component everywhere for a consistent CTA look */
.fx-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  /* tighter vertical rhythm (applies to all pages) */
  padding: clamp(40px, 4.5vw, 56px) 0;
  margin-bottom: 0 !important;
  background: linear-gradient(135deg, #0056d2 0%, #009688 55%, #0b1220 100%);
  color: #fff;
}

/* subtle glow */
.fx-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(0, 86, 210, 0.22), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* faint grid texture */
.fx-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.fx-cta .container {
  position: relative;
  z-index: 1;
}

.fx-cta__inner {
  max-width: 920px;
  margin: 0 auto;
}

.fx-cta__inner h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.85rem, 1.5rem + 1.6vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.fx-cta__lead {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  line-height: 1.7;
  margin: 0 auto 1rem;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92) !important;
}

.fx-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

/* CTA buttons: consistent across pages */
.fx-cta .btn-cta {
  border-radius: 999px;
  padding: 13px 30px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.fx-cta .btn-cta.btn-cta--primary {
  background: #ffffff !important;
  color: #0b1220 !important;
}

.fx-cta .btn-cta.btn-cta--secondary {
  /* outline style, but with a subtle "glass" fill so it doesn't blend into CTA background */
  background: rgba(11, 18, 32, 0.28) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fx-cta .btn-cta i {
  font-size: 1.05rem;
  transition: transform var(--transition-fast);
}

.fx-cta .btn-cta:hover,
.fx-cta .btn-cta:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36) !important;
}

.fx-cta .btn-cta.btn-cta--primary:hover,
.fx-cta .btn-cta.btn-cta--primary:focus-visible {
  background: #f8fafc !important;
  border-color: #ffffff !important;
}

.fx-cta .btn-cta.btn-cta--secondary:hover,
.fx-cta .btn-cta.btn-cta--secondary:focus-visible {
  background: rgba(11, 18, 32, 0.42) !important;
  border-color: rgba(255, 255, 255, 1) !important;
}

.fx-cta .btn-cta:hover i,
.fx-cta .btn-cta:focus-visible i {
  transform: translateX(2px);
}

.fx-cta__note {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82) !important;
}

@media (max-width: 576px) {
  .fx-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fx-cta .btn-cta {
    justify-content: center;
    width: 100%;
  }
}

.cta-btn {
  background: var(--fx-orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: #e65100;
  transform: translateY(-2px);
  color: #fff;
}

/* ========== TEXT ON GRADIENT/BLUE BACKGROUNDS ========== */
/* Ensure all text is white on gradient backgrounds */
.enroll,
.metrics-band,
.stats-section,
.cta-section,
section[style*="gradient"],
section[style*="background: var(--fx-gradient)"],
section[style*="background: var(--fx-dark)"] {
  color: #ffffff !important;
}

.enroll *,
.metrics-band *,
.stats-section *,
.cta-section *,
section[style*="gradient"] *,
section[style*="background: var(--fx-gradient)"] *,
section[style*="background: var(--fx-dark)"] * {
  color: #ffffff !important;
}

.enroll h1,
.enroll h2,
.enroll h3,
.enroll h4,
.enroll h5,
.enroll h6,
.enroll p,
.enroll span,
.enroll div,
.enroll a:not(.btn-cta),
.metrics-band h1,
.metrics-band h2,
.metrics-band h3,
.metrics-band h4,
.metrics-band h5,
.metrics-band h6,
.metrics-band p,
.metrics-band span,
.metrics-band div,
.stats-section h1,
.stats-section h2,
.stats-section h3,
.stats-section h4,
.stats-section h5,
.stats-section h6,
.stats-section p,
.stats-section span,
.stats-section div,
.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6,
.cta-section p,
.cta-section span,
.cta-section div {
  color: #ffffff !important;
}

/* Hero sections with gradient backgrounds - ensure all text is white */
.hero .inner,
.hero-overlay,
.hero-wrap .hero-overlay {
  color: #ffffff !important;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6,
.hero p,
.hero span,
.hero .lead,
.hero .hero-badges,
.hero .hero-badges *,
.hero-overlay h1,
.hero-overlay h2,
.hero-overlay h3,
.hero-overlay p,
.hero-overlay .hero-title,
.hero-overlay .hero-sub {
  color: #ffffff !important;
}

/* Ensure buttons on hero are visible */
/* Hero button text colors - will be overridden by specific button styles below */
.hero .btn-pill {
  color: #ffffff !important;
}

/* ALL buttons on gradient/blue backgrounds should use proper styles */
/* Enroll and metrics-band sections - solid white buttons */
.enroll .btn-cta,
.metrics-band .btn-cta,
.cta-section .btn-cta,
section.cta-section .btn-cta,
.enroll .btn-pill,
.enroll .btn-brand,
.enroll .btn-contrast,
.enroll .btn-outline,
.metrics-band .btn-pill,
.metrics-band .btn-brand,
.metrics-band .btn-contrast,
.metrics-band .btn-outline {
  color: #0d1b2a !important;
  background: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: none !important;
}

/* Stats section - ensure all text is white */
.stats-section h1,
.stats-section h2,
.stats-section h3,
.stats-section h4,
.stats-section h5,
.stats-section h6,
.stats-section p,
.stats-section span,
.stats-section div,
.stats-section .stat-item,
.stats-section .stat-item * {
  color: #ffffff !important;
}

/* CTA section - ensure all text is white (except buttons which have their own styles) */
.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6,
.cta-section p,
.cta-section span,
.cta-section div {
  color: #ffffff !important;
}

/* Hero section buttons - use proper button styles (gradient, white, outline) */
.hero .btn-brand {
  background: var(--fx-gradient) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 86, 210, 0.3) !important;
}

.hero .btn-brand:hover {
  background: linear-gradient(90deg, #0066e6, #00a896) !important;
  box-shadow: 0 6px 20px rgba(0, 86, 210, 0.4) !important;
  transform: translateY(-2px);
}

.hero .btn-brand i {
  color: #fff !important;
}

.hero .btn-contrast {
  background: #ffffff !important;
  color: #0d1b2a !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

.hero .btn-contrast:hover {
  background: #f8f9fa !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-2px);
}

.hero .btn-contrast i {
  color: #0d1b2a !important;
}

.hero .btn-outline {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #fff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-2px);
}

.hero .btn-outline i {
  color: #fff !important;
}

.enroll .btn-cta:hover,
.metrics-band .btn-cta:hover,
.cta-section .btn-cta:hover,
section.cta-section .btn-cta:hover,
.enroll .btn-pill:hover,
.enroll .btn-brand:hover,
.enroll .btn-contrast:hover,
.enroll .btn-outline:hover,
.metrics-band .btn-pill:hover,
.metrics-band .btn-brand:hover,
.metrics-band .btn-contrast:hover,
.metrics-band .btn-outline:hover {
  background: #f8f9fa !important;
  color: #0d1b2a !important;
  border-color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.enroll .btn-cta i,
.metrics-band .btn-cta i,
.cta-section .btn-cta i,
section.cta-section .btn-cta i,
.enroll .btn-pill i,
.enroll .btn-brand i,
.enroll .btn-contrast i,
.enroll .btn-outline i,
.metrics-band .btn-pill i,
.metrics-band .btn-brand i,
.metrics-band .btn-contrast i,
.metrics-band .btn-outline i {
  color: #0d1b2a !important;
}

.enroll .btn-cta:hover i,
.metrics-band .btn-cta:hover i,
.cta-section .btn-cta:hover i,
section.cta-section .btn-cta:hover i,
.enroll .btn-pill:hover i,
.enroll .btn-brand:hover i,
.enroll .btn-contrast:hover i,
.enroll .btn-outline:hover i,
.metrics-band .btn-pill:hover i,
.metrics-band .btn-brand:hover i,
.metrics-band .btn-contrast:hover i,
.metrics-band .btn-outline:hover i {
  color: #0d1b2a !important;
}

/* Default btn-cta for light backgrounds - but NOT for gradient backgrounds */
.btn-cta {
  color: #0f172a;
  background: #fff;
  border: 1.5px solid rgba(15, 23, 42, .08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  color: #0b1220;
  border-color: rgba(15, 23, 42, .18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1;
  border: 0;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  transition: transform var(--transition-fast), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.btn-pill:hover {
  transform: translateY(-4px);
  /* Avoid filter on hover (can make text look blurry on some GPUs) */
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

/* Button Style 1: Primary Gradient (Blue to Teal) - Light Mode */
.btn-brand {
  background: var(--fx-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 86, 210, 0.3);
}

.btn-brand:hover {
  background: linear-gradient(90deg, #0066e6, #00a896);
  box-shadow: 0 6px 20px rgba(0, 86, 210, 0.4);
  transform: translateY(-2px);
}

.btn-brand i {
  color: #fff;
}

/* Button Style 2: White Background - Light Mode */
.btn-contrast {
  background: #ffffff;
  color: #0d1b2a;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-contrast:hover {
  background: #f8f9fa;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.btn-contrast i {
  color: #0d1b2a;
}

/* Button Style 3: Transparent with White Border - Light Mode */
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-outline i {
  color: #fff;
}

/* ========== SECTION TITLES ========== */
.section-title {
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  font-size: clamp(1.7rem, 1.5rem + 1.1vw, 2.25rem) !important;
  line-height: 1.18 !important;
  /* Keep background constrained to the text width (prevents a full-width bar even if a browser misbehaves) */
  display: inline-block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto 0.7rem !important;
  text-align: center !important;
  text-decoration: none !important;
  border-bottom: 0 !important;

  /* Fallback (prevents "gradient bar" if text clipping isn't supported) */
  color: #0f172a !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;

  /* subtle “premium” glow (not an underline) */
  text-shadow: 0 10px 26px rgba(0, 86, 210, 0.16) !important;
}

.section-title i {
  vertical-align: -2px !important;
  margin-right: 0.35rem !important;
  /* Fallback (icon visible even without text-clip support) */
  color: var(--fx-blue) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.section-sub {
  color: #64748b !important;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem) !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  text-align: center !important;
  max-width: 760px !important;
  margin: 0 auto !important;
}

/* Premium gradient text (only when supported) */
@supports ((-webkit-background-clip: text) and (-webkit-text-fill-color: transparent)) or (background-clip: text) {
  .section-title {
    background: linear-gradient(90deg, #0056d2 0%, #00a896 55%, #20c997 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }

  .section-title i {
    background: linear-gradient(90deg, #0056d2 0%, #00a896 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }
}

/* ========== STANDARD SECTION SPACING ========== */
section {
  padding: 60px 0;
}

section.bg-light {
  background: #f8fafc;
}

/* Standard section header container */
.section-header,
.text-center.mb-3,
.text-center.mb-4,
.text-center.mb-5 {
  text-align: center;
}

.text-center.mb-3 {
  margin-bottom: 1.5rem !important;
}

.text-center.mb-4 {
  margin-bottom: 2rem !important;
}

.text-center.mb-5 {
  margin-bottom: 2.5rem !important;
}

/* Standard heading styles */
h1 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h3 {
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* Override heading colors on dark/gradient backgrounds */
.stats-section h1,
.stats-section h2,
.stats-section h3,
.stats-section h4,
.stats-section h5,
.stats-section h6,
.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6,
.enroll h1,
.enroll h2,
.enroll h3,
.enroll h4,
.enroll h5,
.enroll h6,
.metrics-band h1,
.metrics-band h2,
.metrics-band h3,
.metrics-band h4,
.metrics-band h5,
.metrics-band h6,
section[style*="gradient"] h1,
section[style*="gradient"] h2,
section[style*="gradient"] h3,
section[style*="gradient"] h4,
section[style*="gradient"] h5,
section[style*="gradient"] h6,
section[style*="background: var(--fx-gradient)"] h1,
section[style*="background: var(--fx-gradient)"] h2,
section[style*="background: var(--fx-gradient)"] h3,
section[style*="background: var(--fx-gradient)"] h4,
section[style*="background: var(--fx-gradient)"] h5,
section[style*="background: var(--fx-gradient)"] h6,
section[style*="background: var(--fx-dark)"] h1,
section[style*="background: var(--fx-dark)"] h2,
section[style*="background: var(--fx-dark)"] h3,
section[style*="background: var(--fx-dark)"] h4,
section[style*="background: var(--fx-dark)"] h5,
section[style*="background: var(--fx-dark)"] h6 {
  color: #ffffff !important;
}

/* Standard paragraph styles */
p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #0d1b2a;
}

/* Override paragraph color on dark/gradient backgrounds */
.stats-section p,
.cta-section p,
.enroll p,
.metrics-band p,
section[style*="gradient"] p,
section[style*="background: var(--fx-gradient)"] p,
section[style*="background: var(--fx-dark)"] p,
section[style*="background: #0d1b2a"] p,
section[style*="background: #000"] p,
section[style*="background: black"] p {
  color: #ffffff !important;
}

p.small,
.small {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Standard text colors */
.text-muted,
.section-sub {
  color: #64748b;
}

/* ========== STANDARDIZED TYPOGRAPHY ========== */
/* All headings should use consistent weights */
h1,
.h1 {
  font-weight: 700;
  font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2,
.h2 {
  font-weight: 700;
  font-size: clamp(1.625rem, 1.5rem + 1vw, 2rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h3,
.h3 {
  font-weight: 600;
  font-size: clamp(1.25rem, 1.125rem + 0.5vw, 1.5rem);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

h4,
.h4 {
  font-size: 1.25rem;
}

h5,
.h5 {
  font-size: 1.125rem;
}

h6,
.h6 {
  font-size: 1rem;
}

/* Standard body text */
body,
p {
  font-size: 1rem;
  line-height: 1.6;
  color: #0d1b2a;
}

p {
  margin-bottom: 1rem;
}

/* Small text */
small,
.small {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Bold text */
strong,
b,
.fw-bold {
  font-weight: 700;
}

.fw-semibold {
  font-weight: 600;
}

.fw-normal {
  font-weight: 400;
}

/* ========== STANDARDIZED SPACING ========== */
/* Section spacing - all sections should use this */
section {
  padding: 60px 0;
}

/* Reduced spacing for compact sections */
section.compact {
  padding: 40px 0;
}

/* Standard grid gaps */
.row.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.row.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* Standard card grid gaps */
.grid-gap-sm {
  gap: 16px;
}

.grid-gap-md {
  gap: 20px;
}

.grid-gap-lg {
  gap: 24px;
}

/* ========== CARDS ========== */
.value-card,
.process-step,
.stack-card,
.svc-card,
.feature-card,
.process-card,
.about-card,
.value-card-modern,
.fxc-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.fxc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fx-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.fxc-card:hover::before {
  transform: scaleX(1);
}

/* Dark mode: white hover effect instead of blue gradient */
html.theme-dark .fxc-card::before {
  background: rgba(255, 255, 255, 0.9);
}

html.theme-dark .fxc-card:hover::before {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.fxc-card .icon {
  transition: transform 0.3s ease;
}

.fxc-card:hover .icon {
  transform: scale(1.1);
}

.value-card:hover,
.process-step:hover,
.stack-card:hover,
.svc-card:hover,
.feature-card:hover,
.process-card:hover,
.about-card:hover,
.value-card-modern:hover,
.fxc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 86, 210, 0.15);
}

/* Dark mode: white border on hover instead of blue */
html.theme-dark .value-card:hover,
html.theme-dark .process-step:hover,
html.theme-dark .stack-card:hover,
html.theme-dark .svc-card:hover,
html.theme-dark .feature-card:hover,
html.theme-dark .process-card:hover,
html.theme-dark .about-card:hover,
html.theme-dark .value-card-modern:hover,
html.theme-dark .fxc-card:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.1);
}

.svc-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--fx-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.svc-card:hover::before {
  transform: scaleX(1);
}

/* Dark mode: white top border on hover */
html.theme-dark .svc-card::before {
  background: rgba(255, 255, 255, 0.9);
}

html.theme-dark .svc-card:hover::before {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.svc-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}

.svc-card i {
  font-size: 2.2rem;
  color: var(--fx-orange);
  margin-bottom: 0.8rem;
  display: block;
}

.svc-card img.favicon-icon,
.svc-card .favicon-icon {
  width: 2.2rem !important;
  height: 2.2rem !important;
  min-width: 2.2rem !important;
  min-height: 2.2rem !important;
  max-width: 2.2rem !important;
  max-height: 2.2rem !important;
  object-fit: contain !important;
  margin-bottom: 0.8rem !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
  border: none !important;
  position: relative !important;
  z-index: 1 !important;
  flex-shrink: 0 !important;
}

/* Ensure images in svc-card are visible and not hidden by icon styles */
.svc-card img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.svc-card h6 {
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #0f172a;
  font-size: 1.1rem;
}

.svc-card p {
  color: #475569;
  line-height: 1.6;
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 400;
}

/* ========== IMAGES ========== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ========== FOOTER ========== */
footer {
  background: var(--fx-dark);
  color: #f1f5f9 !important;
  padding: 18px 0 !important;
  margin-top: 0 !important;
  font-size: 0.9rem !important;
  /* lock consistent footer base font size */
}

/* Remove gap between CTA section and footer */
main:has(.fx-cta:last-child) {
  padding-bottom: 0 !important;
}

/* Fallback for browsers that don't support :has() - ensure CTA has no bottom margin */
main>.fx-cta:last-child,
main>section.fx-cta:last-child {
  margin-bottom: 0 !important;
}

/* Ensure footer immediately follows CTA with no gap */
.fx-cta+footer,
section.fx-cta+footer {
  margin-top: 0 !important;
}

/* Ensure all footer text is visible - light mode */
footer * {
  color: inherit;
}

/* Footer grid safety: prevent page-level flex hacks from breaking footer columns */
footer .row.g-4>[class*="col-"] {
  display: block !important;
}

/* Make footer gutters a bit tighter than Bootstrap g-4 defaults */
footer .row {
  --bs-gutter-x: 1.25rem !important;
  --bs-gutter-y: 1rem !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
  color: #ffffff !important;
  margin-bottom: 8px !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

footer h5 {
  font-size: inherit !important;
}

footer p,
footer span,
footer div,
footer address,
footer .copyright,
footer small,
footer .text-muted {
  color: #e5e7eb !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
}

footer a {
  color: #e5e7eb !important;
  text-decoration: none;
  display: block;
  margin-bottom: 4px !important;
  font-size: 0.9rem !important;
  transition: color var(--transition-fast);
}

footer a:hover,
footer a:focus {
  color: #ffffff !important;
  text-decoration: underline;
}

footer#contact .social a {
  color: #e5e7eb !important;
}

footer#contact .social a:hover,
footer#contact .social a:focus {
  color: #ffffff !important;
}

.footer-rule {
  border-color: rgba(255, 255, 255, .25) !important;
  margin: 0.75rem 0 !important;
}

footer .copyright {
  font-size: 0.9rem;
}

footer address {
  margin-bottom: 0.5rem;
}

footer#contact .social {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-top: 0.5rem !important;
}

footer#contact .social a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  flex: 0 0 auto !important;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

footer#contact .social a i {
  font-size: 1.25rem !important;
  line-height: 1 !important;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

footer#contact .social a:hover,
footer#contact .social a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

footer#contact .social a:hover i,
footer#contact .social a:focus-visible i {
  transform: scale(1.12);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.05);
  color: #fff;
}

/* ========== DARK MODE ========== */
html.theme-dark body {
  background: #0b1220;
  color: #fff !important;
}

/* Dark mode - ensure all text is visible */
html.theme-dark p,
html.theme-dark span,
html.theme-dark div,
html.theme-dark li,
html.theme-dark td,
html.theme-dark th,
html.theme-dark label,
html.theme-dark .text-muted,
html.theme-dark .small,
html.theme-dark small {
  color: #e5e7eb !important;
}

html.theme-dark .text-dark {
  color: #e5e7eb !important;
}

html.theme-dark .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Dark mode cards - ensure text is visible */
html.theme-dark .value-card,
html.theme-dark .process-step,
html.theme-dark .stack-card,
html.theme-dark .svc-card,
html.theme-dark .feature-card,
html.theme-dark .process-card,
html.theme-dark .about-card,
html.theme-dark .value-card-modern,
html.theme-dark .fxc-card,
html.theme-dark .vcard,
html.theme-dark .cap-card,
html.theme-dark .approach-step,
html.theme-dark .step {
  color: #fff !important;
}

/* ========== DARK MODE: COMPREHENSIVE ICON VISIBILITY ========== */

/* Base: All icons should be visible in dark mode */
html.theme-dark .icon,
html.theme-dark [class*="icon"]:not(.btn):not([class*="btn"]),
html.theme-dark .icon-wrap,
html.theme-dark i,
html.theme-dark .fa,
html.theme-dark .bi {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* SVG icons - ensure all SVG paths, circles, rects are visible */
/* Apply stroke to all, but only fill elements that don't have fill="none" */
html.theme-dark svg path,
html.theme-dark svg circle,
html.theme-dark svg rect,
html.theme-dark svg line,
html.theme-dark svg polygon,
html.theme-dark svg polyline {
  stroke: #ffffff !important;
  opacity: 1 !important;
}

/* Only fill elements that should be filled */
html.theme-dark svg path:not([fill="none"]):not([fill]),
html.theme-dark svg circle:not([fill="none"]):not([fill]),
html.theme-dark svg rect:not([fill="none"]):not([fill]) {
  fill: #ffffff !important;
}

/* Keep fill="none" transparent */
html.theme-dark svg path[fill="none"],
html.theme-dark svg circle[fill="none"],
html.theme-dark svg rect[fill="none"] {
  fill: none !important;
}

/* Card icons - use accent color for better visibility */
html.theme-dark .fxc-card .icon,
html.theme-dark .svc-card i,
html.theme-dark .value-card i,
html.theme-dark .process-step i,
html.theme-dark .feature-card i,
html.theme-dark .process-card i,
html.theme-dark .about-card i,
html.theme-dark .value-card-modern i,
html.theme-dark .vcard i,
html.theme-dark .cap-card i,
html.theme-dark .step i {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Approach step icons - ensure visibility */
html.theme-dark .approach-step i,
html.theme-dark .approach-icon {
  color: #ffffff !important;
  background: transparent !important;
  opacity: 1 !important;
}

/* Approach icon SVG - apply stroke but respect fill="none" */
html.theme-dark .approach-icon svg path,
html.theme-dark .approach-icon svg circle,
html.theme-dark .approach-icon svg rect,
html.theme-dark .approach-icon svg line {
  stroke: #ffffff !important;
  opacity: 1 !important;
}

/* Only fill approach icon elements that don't have fill="none" */
html.theme-dark .approach-icon svg path:not([fill="none"]):not([fill]),
html.theme-dark .approach-icon svg circle:not([fill="none"]):not([fill]),
html.theme-dark .approach-icon svg rect:not([fill="none"]):not([fill]) {
  fill: #ffffff !important;
}

/* Keep fill="none" transparent for approach icons */
html.theme-dark .approach-icon svg path[fill="none"],
html.theme-dark .approach-icon svg circle[fill="none"],
html.theme-dark .approach-icon svg rect[fill="none"] {
  fill: none !important;
}

/* Track icons (training page) */
html.theme-dark .track-icon,
html.theme-dark .track-icon i {
  color: #ffffff !important;
  background: var(--fx-gradient) !important;
  opacity: 1 !important;
}

/* Feature item icons (training page) */
html.theme-dark .feature-item i {
  color: #ffffff !important;
  background: var(--fx-gradient) !important;
  opacity: 1 !important;
}

/* Cap item icons */
html.theme-dark .cap-item i,
html.theme-dark .cap-item svg {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Career help icons (training page) */
html.theme-dark .ch-icon,
html.theme-dark .ch-icon i {
  color: #ffffff !important;
  background: var(--fx-gradient) !important;
  opacity: 1 !important;
}

/* Timeline step icons */
html.theme-dark .tl-step i {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Testimonial icons */
html.theme-dark .testimonial-card i,
html.theme-dark .testimonial-tag i {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Hover states - enhance visibility with glow */
html.theme-dark .fxc-card:hover .icon,
html.theme-dark .svc-card:hover i,
html.theme-dark .value-card:hover i,
html.theme-dark .process-step:hover i,
html.theme-dark .feature-card:hover i,
html.theme-dark .process-card:hover i,
html.theme-dark .about-card:hover i,
html.theme-dark .value-card-modern:hover i,
html.theme-dark .vcard:hover i,
html.theme-dark .cap-card:hover i,
html.theme-dark .step:hover i,
html.theme-dark .approach-step:hover i,
html.theme-dark .approach-step:hover .approach-icon svg path,
html.theme-dark .approach-step:hover .approach-icon svg circle,
html.theme-dark .approach-step:hover .approach-icon svg rect {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: #ffffff !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) !important;
  opacity: 1 !important;
}

html.theme-dark .feature-item:hover i,
html.theme-dark .track-icon:hover,
html.theme-dark .ch-icon:hover {
  color: #ffffff !important;
  background: var(--fx-gradient) !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) !important;
  opacity: 1 !important;
}

html.theme-dark .value-card p,
html.theme-dark .process-step p,
html.theme-dark .stack-card p,
html.theme-dark .svc-card p,
html.theme-dark .feature-card p,
html.theme-dark .process-card p,
html.theme-dark .about-card p,
html.theme-dark .value-card-modern p,
html.theme-dark .fxc-card p,
html.theme-dark .vcard p,
html.theme-dark .cap-card p,
html.theme-dark .approach-step p,
html.theme-dark .step p {
  color: #e5e7eb !important;
}

html.theme-dark .value-card h1,
html.theme-dark .value-card h2,
html.theme-dark .value-card h3,
html.theme-dark .value-card h4,
html.theme-dark .value-card h5,
html.theme-dark .value-card h6,
html.theme-dark .fxc-card h1,
html.theme-dark .fxc-card h2,
html.theme-dark .fxc-card h3,
html.theme-dark .fxc-card h4,
html.theme-dark .fxc-card h5,
html.theme-dark .fxc-card h6,
html.theme-dark .vcard h1,
html.theme-dark .vcard h2,
html.theme-dark .vcard h3,
html.theme-dark .vcard h4,
html.theme-dark .vcard h5,
html.theme-dark .vcard h6 {
  color: #ffffff !important;
}

html.theme-dark .navbar,
html.theme-dark .navbar.bg-white {
  background: rgba(10, 16, 28, .95) !important;
}

html.theme-dark .navbar .nav-link {
  color: #fff !important;
}

html.theme-dark .navbar .navbar-toggler-icon {
  filter: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  opacity: 1 !important;
}

html.theme-dark .navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

html.theme-dark .navbar .navbar-toggler:hover,
html.theme-dark .navbar .navbar-toggler:focus {
  border-color: rgba(255, 255, 255, 0.4) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-dark .dropdown-menu {
  background: #111a2a;
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .6);
}

html.theme-dark .dropdown-item {
  color: #fff !important;
}

html.theme-dark .dropdown-item:hover {
  background: var(--fx-gradient);
  color: #fff;
}

html.theme-dark .bg-light {
  background: #0f1a2b !important;
}

html.theme-dark footer {
  background: #070d18;
  color: #f1f5f9 !important;
}

/* Dark mode footer text - ensure all text is visible */
html.theme-dark footer * {
  color: inherit;
}

html.theme-dark footer h1,
html.theme-dark footer h2,
html.theme-dark footer h3,
html.theme-dark footer h4,
html.theme-dark footer h5,
html.theme-dark footer h6 {
  color: #ffffff !important;
}

html.theme-dark footer p,
html.theme-dark footer span,
html.theme-dark footer div,
html.theme-dark footer address,
html.theme-dark footer .copyright,
html.theme-dark footer small,
html.theme-dark footer .text-muted {
  color: #e5e7eb !important;
}

html.theme-dark footer a {
  color: #e5e7eb !important;
}

html.theme-dark footer a:hover,
html.theme-dark footer a:focus {
  color: #ffffff !important;
  text-decoration: underline;
}

html.theme-dark footer .social a {
  color: #e5e7eb !important;
}

html.theme-dark footer .social a:hover,
html.theme-dark footer .social a:focus {
  color: #ffffff !important;
}

html.theme-dark .footer-rule {
  border-color: #2a3447;
}

html.theme-dark .whatsapp-float {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6);
}

html.theme-dark .text-muted {
  color: rgba(255, 255, 255, .78) !important;
}

html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6 {
  color: #fff !important;
}

/* Dark mode: default link color — but do NOT override button links */
html.theme-dark a:not(.btn):not(.btn-pill):not(.btn-brand):not(.btn-contrast):not(.btn-outline):not(.btn-cta):not(.cta-btn) {
  color: #fff !important;
}

html.theme-dark a:not(.btn):not(.btn-pill):not(.btn-brand):not(.btn-contrast):not(.btn-outline):not(.btn-cta):not(.cta-btn):hover,
html.theme-dark a:not(.btn):not(.btn-pill):not(.btn-brand):not(.btn-contrast):not(.btn-outline):not(.btn-cta):not(.cta-btn):focus {
  text-decoration: underline;
}

html.theme-dark .section-title {
  /* Dark-mode fallback */
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 14px 30px rgba(52, 211, 153, 0.14);
}

html.theme-dark .section-title i {
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

@supports ((-webkit-background-clip: text) and (-webkit-text-fill-color: transparent)) or (background-clip: text) {
  html.theme-dark .section-title {
    /* keep premium gradient in dark mode (brighter for contrast) */
    background: linear-gradient(90deg, #7dd3fc 0%, #34d399 55%, #22c55e 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }

  html.theme-dark .section-title i {
    background: linear-gradient(90deg, #7dd3fc 0%, #34d399 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }
}

html.theme-dark .section-sub {
  color: #e5e7eb !important;
  opacity: 1 !important;
}

/* Ensure section-sub is visible in all sections including process/approach */
html.theme-dark .process .section-sub,
html.theme-dark #approach .section-sub,
html.theme-dark section .section-sub {
  color: #e5e7eb !important;
  opacity: 1 !important;
}

/* Dark mode: ensure all headings are visible */
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6,
html.theme-dark .h1,
html.theme-dark .h2,
html.theme-dark .h3,
html.theme-dark .h4,
html.theme-dark .h5,
html.theme-dark .h6 {
  color: #ffffff !important;
}

html.theme-dark .hero-overlay,
html.theme-dark .hero-overlay .hero-title,
html.theme-dark .hero-overlay .hero-sub {
  color: #fff !important;
}

/* Dark mode - ensure all sections have visible text */
html.theme-dark section {
  color: #fff !important;
}

html.theme-dark section p,
html.theme-dark section span,
html.theme-dark section div,
html.theme-dark section li {
  color: #e5e7eb !important;
}

html.theme-dark section.bg-light {
  background: #0f1a2b !important;
  color: #fff !important;
}

html.theme-dark section.bg-light p,
html.theme-dark section.bg-light span,
html.theme-dark section.bg-light div {
  color: #e5e7eb !important;
}

html.theme-dark .navbar-brand img {
  filter: brightness(0) invert(1);
}

/* Ensure all logos and images are visible in dark mode */
html.theme-dark main img,
html.theme-dark footer img {
  opacity: 0.95;
  filter: brightness(1.1);
}

/* Dark mode: invert logos/brand images, but NOT buttons */
html.theme-dark .logo,
html.theme-dark [class*="logo"]:not(.btn):not([class*="btn"]):not(button):not(a[class*="btn"]),
html.theme-dark [class*="brand"]:not(.btn):not([class*="btn"]):not(button):not(a[class*="btn"]) {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

/* About/Stack: Tech Toolkit carousel uses class names with "logo-" (logo-carousel/track/item).
   The generic rule above would invert the whole carousel (including SVG icons), making them
   effectively invisible on white cards. Keep Tech Toolkit logos unfiltered. */
html.theme-dark #stack .logo-carousel,
html.theme-dark #stack .logo-track,
html.theme-dark #stack .logo-item,
html.theme-dark #stack .flip-front,
html.theme-dark #stack .flip-front img,
html.theme-dark #stack .flip-back,
html.theme-dark #stack .flip-back[class*="brand"],
html.theme-dark #stack [class*="brand"].flip-back {
  filter: none !important;
}

/* ========== DARK MODE: BUTTON SYSTEM (GLOBAL) ========== */
/* Goal: premium + consistent buttons in dark mode across all pages/sections. */
html.theme-dark {
  --fx-btn-grad: linear-gradient(90deg, #3b82f6 0%, #22c55e 100%);
  --fx-btn-grad-hover: linear-gradient(90deg, #60a5fa 0%, #34d399 100%);
  --fx-btn-surface: rgba(255, 255, 255, 0.06);
  --fx-btn-surface-hover: rgba(255, 255, 255, 0.1);
  --fx-btn-border: rgba(255, 255, 255, 0.16);
  --fx-btn-border-strong: rgba(255, 255, 255, 0.28);
  --fx-btn-text: rgba(255, 255, 255, 0.92);
  --fx-btn-text-strong: #ffffff;
  --fx-btn-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --fx-btn-glow: 0 14px 36px rgba(59, 130, 246, 0.28);
  --fx-btn-ring: 0 0 0 0.22rem rgba(125, 211, 252, 0.28), 0 0 0 0.38rem rgba(52, 211, 153, 0.16);
}

/* Safety: never invert custom buttons in dark mode */
html.theme-dark .cta-btn,
html.theme-dark .btn-cta,
html.theme-dark .btn-pill,
html.theme-dark .btn-brand,
html.theme-dark .btn-contrast,
html.theme-dark .btn-outline {
  filter: none !important;
  -webkit-filter: none !important;
}

/* Shared interaction polish */
html.theme-dark .cta-btn,
html.theme-dark .btn-cta,
html.theme-dark .btn-pill,
html.theme-dark .btn-brand,
html.theme-dark .btn-contrast,
html.theme-dark .btn-outline {
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
}

html.theme-dark .cta-btn:focus-visible,
html.theme-dark .btn-cta:focus-visible,
html.theme-dark .btn-pill:focus-visible,
html.theme-dark .btn-brand:focus-visible,
html.theme-dark .btn-contrast:focus-visible,
html.theme-dark .btn-outline:focus-visible {
  outline: none;
  box-shadow: var(--fx-btn-ring) !important;
}

/* Primary (brand) */
html.theme-dark .btn-brand {
  background: var(--fx-btn-grad);
  color: var(--fx-btn-text-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--fx-btn-shadow), var(--fx-btn-glow);
}

html.theme-dark .btn-brand:hover,
html.theme-dark .btn-brand:focus-visible {
  background: var(--fx-btn-grad-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 18px 46px rgba(59, 130, 246, 0.33);
}

/* Secondary (surface) */
html.theme-dark .btn-contrast {
  background: var(--fx-btn-surface);
  color: var(--fx-btn-text);
  border: 1px solid var(--fx-btn-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.theme-dark .btn-contrast:hover,
html.theme-dark .btn-contrast:focus-visible {
  background: var(--fx-btn-surface-hover);
  border-color: var(--fx-btn-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

/* Outline (glass) */
html.theme-dark .btn-outline {
  background: transparent;
  color: var(--fx-btn-text-strong);
  border: 1.5px solid var(--fx-btn-border-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.theme-dark .btn-outline:hover,
html.theme-dark .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

/* btn-pill fallback when used without a variant */
html.theme-dark .btn-pill:not(.btn-brand):not(.btn-contrast):not(.btn-outline) {
  background: var(--fx-btn-surface);
  color: var(--fx-btn-text);
  border: 1px solid var(--fx-btn-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

html.theme-dark .btn-pill:not(.btn-brand):not(.btn-contrast):not(.btn-outline):hover,
html.theme-dark .btn-pill:not(.btn-brand):not(.btn-contrast):not(.btn-outline):focus-visible {
  background: var(--fx-btn-surface-hover);
  border-color: var(--fx-btn-border-strong);
  transform: translateY(-2px);
}

/* btn-cta variants (global; section-specific CTA components override these) */
html.theme-dark .btn-cta {
  background: var(--fx-btn-grad);
  color: var(--fx-btn-text-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--fx-btn-shadow), var(--fx-btn-glow);
}

html.theme-dark .btn-cta.btn-cta--secondary {
  background: var(--fx-btn-surface);
  color: var(--fx-btn-text);
  border: 1px solid var(--fx-btn-border-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.theme-dark .btn-cta:hover,
html.theme-dark .btn-cta:focus-visible,
html.theme-dark .cta-btn:hover,
html.theme-dark .cta-btn:focus-visible {
  transform: translateY(-2px);
}

/* Ensure icons follow button text color */
html.theme-dark .btn-pill i,
html.theme-dark .btn-brand i,
html.theme-dark .btn-contrast i,
html.theme-dark .btn-outline i,
html.theme-dark .btn-cta i,
html.theme-dark .cta-btn i {
  color: inherit !important;
}

/* Theme toggle button: make it match the dark UI */
html.theme-dark #themeToggle {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

html.theme-dark #themeToggle:hover,
html.theme-dark #themeToggle:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  transform: translateY(-1px);
}

/* Bootstrap button variants used across pages (e.g., Contact) */
html.theme-dark .btn.btn-outline-dark {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

html.theme-dark .btn.btn-outline-dark:hover,
html.theme-dark .btn.btn-outline-dark:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  transform: translateY(-1px);
}

html.theme-dark .btn.btn-dark {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

html.theme-dark .btn.btn-dark:hover,
html.theme-dark .btn.btn-dark:focus-visible {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px);
}

html.theme-dark .btn.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html.theme-dark .btn.btn-outline-secondary:hover,
html.theme-dark .btn.btn-outline-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  transform: translateY(-1px);
}

html.theme-dark .value-card,
html.theme-dark .process-step,
html.theme-dark .stack-card,
html.theme-dark .svc-card,
html.theme-dark .feature-card,
html.theme-dark .process-card,
html.theme-dark .about-card,
html.theme-dark .value-card-modern {
  background: #0f1a2b;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}

/* ========== RESPONSIVE DESIGN ========== */
/* Mobile First: 360px - 480px */
@media screen and (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  html body .hero,
  html body .hero-wrap,
  html body .hero-train {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .hero-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .hero-sub {
    font-size: clamp(0.85rem, 2vw, 1rem);
  }

  /* Keep section titles consistent (base clamp handles responsiveness) */

  .cta-btn,
  .btn-cta,
  .btn-pill {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Specific fix for 390x844 resolution - ensure all buttons are visible */
@media screen and (width: 390px) and (height: 844px),
screen and (width: 390px) and (min-height: 800px) {

  /* CRITICAL: Override base hero height constraint */
  html body .hero,
  html body .hero-wrap,
  html body .hero-train,
  header.hero {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    align-items: flex-start !important;
  }

  html body .hero .inner,
  html body .hero-wrap .inner,
  html body .hero-train .inner {
    padding-bottom: 180px !important;
    overflow: visible !important;
  }

  .hero-actions {
    flex-direction: column !important;
    gap: 0.55rem !important;
    margin-top: 0.7rem !important;
    margin-bottom: 0 !important;
    display: flex !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hero-actions a,
  .hero-actions .btn-pill {
    width: 100% !important;
    padding: 10px 16px !important;
    font-size: 0.84rem !important;
    min-height: 40px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
  }

  .hero-actions a:last-child,
  .hero-actions a:nth-child(3),
  .hero-actions .btn-outline,
  .hero-actions a[href*="contact"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 40px !important;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: 12px;
  }

  footer {
    padding: 20px 0;
  }

  footer h5 {
    font-size: 1rem;
  }

  footer p,
  footer a {
    font-size: 0.85rem;
  }
}

/* Tablet: 768px */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  html body .hero,
  html body .hero-wrap,
  html body .hero-train {
    height: clamp(400px, 52vh, 600px) !important;
  }

  /* Keep section titles consistent (base clamp handles responsiveness) */
}

/* Laptop: 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  html body .hero,
  html body .hero-wrap,
  html body .hero-train {
    height: clamp(460px, 62vh, 680px) !important;
  }
}

/* Desktop: 1280px+ */
@media screen and (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
  text-align: center !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-3 {
  margin-top: var(--spacing-md) !important;
}

.py-5 {
  padding-top: var(--spacing-xl) !important;
  padding-bottom: var(--spacing-xl) !important;
}

/* ========== ACCESSIBILITY: REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  footer .social a i {
    transition: none;
  }

  footer .social a:hover i,
  footer .social a:focus-visible i {
    transform: none;
  }
}

/* ========== PRINT STYLES ========== */
@media print {

  .navbar,
  .whatsapp-float,
  footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}