#consulting-ecosystem-bar,
#consulting-ecosystem-bar * {
  box-sizing: border-box;
}

#consulting-ecosystem-bar {
  --ce-bg: #2b115f;
  --ce-bg-deep: #0a1020;
  --ce-line: rgba(255, 255, 255, 0.14);
  --ce-text: #ffffff;
  --ce-muted: rgba(255, 255, 255, 0.68);
  --ce-cyan: #55d9ff;
  --ce-blue: #3f6cff;
  --ce-violet: #7551ff;
  position: relative;
  z-index: 2147483000;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  color: var(--ce-text);
  background:
    radial-gradient(circle at 18% -120%, rgba(90, 219, 255, 0.38), transparent 42%),
    linear-gradient(100deg, #35116f 0%, #24104e 45%, #101a3e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 9px 28px rgba(4, 8, 22, 0.2);
  font-family: Inter, Manrope, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
}

#consulting-ecosystem-bar a,
#consulting-ecosystem-bar button {
  font: inherit;
}

#consulting-ecosystem-bar a {
  color: inherit;
  text-decoration: none;
}

#consulting-ecosystem-bar button {
  margin: 0;
}

.ce-bar-inner {
  width: min(100% - 28px, 1480px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
}

.ce-brand {
  min-width: 164px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.ce-mark {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}

.ce-mark i,
.ce-mark b {
  position: absolute;
  display: block;
  transform: rotate(45deg);
  border-radius: 3px;
}

.ce-mark i {
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, #33d7ff, #6f50ff);
  box-shadow: 0 0 12px rgba(64, 178, 255, 0.45);
}

.ce-mark i:nth-child(1) { left: 8px; top: 0; }
.ce-mark i:nth-child(2) { right: 0; top: 8px; }
.ce-mark i:nth-child(3) { left: 8px; bottom: 0; }
.ce-mark i:nth-child(4) { left: 0; top: 8px; }

.ce-mark b {
  inset: 8px;
  background: #ffffff;
  border-radius: 2px;
}

.ce-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ce-brand-copy strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ce-brand-copy strong span {
  color: var(--ce-cyan);
}

.ce-brand-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ce-nav {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(11px, 1.35vw, 24px);
}

.ce-nav-link,
.ce-agency-trigger {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ce-nav-link::after,
.ce-agency-trigger::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ce-cyan), #7785ff);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.23s ease;
}

.ce-nav-link:hover,
.ce-nav-link:focus-visible,
.ce-agency-trigger:hover,
.ce-agency-trigger:focus-visible,
.ce-agency:hover > .ce-agency-trigger,
.ce-agency:focus-within > .ce-agency-trigger {
  color: #79dcff;
  outline: none;
}

.ce-nav-link:hover::after,
.ce-nav-link:focus-visible::after,
.ce-agency:hover > .ce-agency-trigger::after,
.ce-agency:focus-within > .ce-agency-trigger::after {
  transform: scaleX(1);
}

.ce-agency {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}

.ce-chevron {
  width: 7px;
  height: 7px;
  margin: -3px 0 0 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.ce-mega {
  position: absolute;
  top: 48px;
  left: 50%;
  width: min(1180px, calc(100vw - 32px));
  padding: 22px;
  display: grid;
  grid-template-columns: 1.25fr 1.1fr 0.9fr 0.85fr 1fr;
  gap: 14px;
  border: 1px solid rgba(113, 177, 255, 0.2);
  border-radius: 0 0 18px 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(64, 105, 255, 0.2), transparent 35%),
    rgba(5, 13, 28, 0.98);
  box-shadow: 0 24px 60px rgba(3, 7, 18, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 9px);
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.22s;
}

.ce-agency:hover .ce-mega,
.ce-agency:focus-within .ce-mega,
.ce-agency.ce-expanded .ce-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.ce-mega-group {
  min-width: 0;
}

.ce-mega-toggle {
  width: 100%;
  min-height: 30px;
  padding: 0 9px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #73dcff;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.ce-mega-toggle .ce-chevron {
  display: none;
}

.ce-mega-links {
  padding-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ce-mega-links a {
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ce-mega-links a:hover,
.ce-mega-links a:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #2868ff, #7552ff 66%, #39c8ff);
  outline: none;
  transform: translateX(2px);
}

.ce-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.ce-phone {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.ce-cta {
  min-height: 30px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ce-cta:hover,
.ce-cta:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #2e6eff, #7550ff);
  outline: none;
}

.ce-menu-button {
  display: none;
}

@media (max-width: 1220px) {
  .ce-nav { gap: 13px; }
  .ce-nav-link,
  .ce-agency-trigger { font-size: 11px; }
  .ce-phone { display: none; }
  .ce-cta { padding-inline: 10px; }
}

@media (max-width: 1040px) {
  #consulting-ecosystem-bar {
    height: 64px;
    background: linear-gradient(100deg, #1d1447 0%, #0a1328 100%);
  }

  .ce-bar-inner {
    width: calc(100% - 24px);
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    gap: 10px;
  }

  .ce-brand { min-width: 0; }
  .ce-brand-copy small { display: none; }
  .ce-brand-copy strong { font-size: 13px; }

  .ce-actions {
    display: block;
    justify-self: center;
  }

  .ce-phone {
    display: block;
    font-size: 13px;
  }

  .ce-cta { display: none; }

  .ce-menu-button {
    position: relative;
    width: 40px;
    height: 40px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }

  .ce-menu-button i {
    position: absolute;
    left: 11px;
    width: 17px;
    height: 1.5px;
    border-radius: 99px;
    background: #ffffff;
    transition: top 0.22s ease, transform 0.22s ease, opacity 0.18s ease;
  }

  .ce-menu-button i:nth-child(1) { top: 13px; }
  .ce-menu-button i:nth-child(2) { top: 19px; }
  .ce-menu-button i:nth-child(3) { top: 25px; }

  #consulting-ecosystem-bar.ce-menu-open .ce-menu-button i:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
  }

  #consulting-ecosystem-bar.ce-menu-open .ce-menu-button i:nth-child(2) { opacity: 0; }

  #consulting-ecosystem-bar.ce-menu-open .ce-menu-button i:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
  }

  .ce-nav {
    position: fixed;
    z-index: 2147483001;
    inset: 64px 0 0;
    width: 100%;
    height: calc(100dvh - 64px);
    padding: 18px 18px 42px;
    display: block;
    overflow-y: auto;
    background:
      radial-gradient(circle at 90% 6%, rgba(53, 99, 255, 0.22), transparent 35%),
      #07101f;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(20px);
    transition: opacity 0.2s ease, visibility 0.2s, transform 0.22s ease;
  }

  #consulting-ecosystem-bar.ce-menu-open .ce-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .ce-nav-link,
  .ce-agency-trigger {
    width: 100%;
    min-height: 54px;
    height: auto;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
  }

  .ce-nav-link::after,
  .ce-agency-trigger::after { display: none; }

  .ce-agency {
    width: 100%;
    height: auto;
    display: block;
  }

  .ce-agency-trigger .ce-chevron {
    margin-right: 5px;
  }

  .ce-agency.ce-expanded .ce-agency-trigger .ce-chevron {
    margin-top: 3px;
    transform: rotate(225deg);
  }

  .ce-mega,
  .ce-agency:hover .ce-mega,
  .ce-agency:focus-within .ce-mega {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: max-height 0.35s ease, opacity 0.2s ease, visibility 0.2s, padding 0.3s ease;
  }

  .ce-agency.ce-expanded .ce-mega,
  .ce-agency.ce-expanded:hover .ce-mega,
  .ce-agency.ce-expanded:focus-within .ce-mega {
    max-height: 1600px;
    padding: 8px 0 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .ce-mega-group + .ce-mega-group {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .ce-mega-toggle {
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
  }

  .ce-mega-toggle .ce-chevron { display: block; }

  .ce-mega-group.ce-expanded .ce-mega-toggle {
    color: var(--ce-cyan);
  }

  .ce-mega-group.ce-expanded .ce-mega-toggle .ce-chevron {
    margin-top: 3px;
    transform: rotate(225deg);
  }

  .ce-mega-links {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
  }

  .ce-mega-group.ce-expanded .ce-mega-links {
    max-height: 500px;
    padding: 0 0 10px;
    opacity: 1;
  }

  .ce-mega-links a {
    min-height: 40px;
    padding: 8px 12px;
    border-left: 1px solid rgba(85, 217, 255, 0.25);
    border-radius: 0 8px 8px 0;
    font-size: 13px;
  }

  body.consulting-ecosystem-menu-open {
    overflow: hidden !important;
  }
}

@media (max-width: 420px) {
  .ce-bar-inner { width: calc(100% - 18px); }
  .ce-brand-copy { display: none; }
  .ce-brand { width: 31px; }
  .ce-mark { width: 29px; height: 29px; flex-basis: 29px; }
  .ce-mark i { width: 10px; height: 10px; }
  .ce-mark i:nth-child(1) { left: 9px; }
  .ce-mark i:nth-child(2) { top: 9px; }
  .ce-mark i:nth-child(3) { left: 9px; }
  .ce-mark i:nth-child(4) { top: 9px; }
  .ce-mark b { inset: 9px; }
  .ce-phone { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  #consulting-ecosystem-bar *,
  #consulting-ecosystem-bar *::before,
  #consulting-ecosystem-bar *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Version 2: exact Consulting Plus mark, project palettes, shared dropdown geometry. */
#consulting-ecosystem-bar {
  --ce-bar-start: #11182a;
  --ce-bar-end: #07101f;
  --ce-panel-start: #0a1222;
  --ce-panel-end: #08101d;
  --ce-project-accent: #38dcff;
  --ce-project-accent-2: #7655ff;
  --ce-project-glow: rgba(39, 100, 255, 0.24);
  background:
    radial-gradient(circle at 15% -100%, var(--ce-project-glow), transparent 42%),
    linear-gradient(105deg, var(--ce-bar-start), var(--ce-bar-end));
}

#consulting-ecosystem-bar[data-ce-theme="edtech-box"] {
  --ce-bar-start: #611567;
  --ce-bar-end: #251040;
  --ce-panel-start: #35123f;
  --ce-panel-end: #120a22;
  --ce-project-accent: #ff3b9f;
  --ce-project-accent-2: #8e4dff;
  --ce-project-glow: rgba(239, 45, 145, 0.3);
}

#consulting-ecosystem-bar[data-ce-theme="edtech-platinum"] {
  --ce-bar-start: #342918;
  --ce-bar-end: #12100c;
  --ce-panel-start: #292113;
  --ce-panel-end: #0f0e0b;
  --ce-project-accent: #e6bd54;
  --ce-project-accent-2: #9b7425;
  --ce-project-glow: rgba(230, 189, 84, 0.25);
}

#consulting-ecosystem-bar[data-ce-theme="edtech-traffic"] {
  --ce-bar-start: #15446d;
  --ce-bar-end: #070d17;
  --ce-panel-start: #0f3150;
  --ce-panel-end: #070c14;
  --ce-project-accent: #49a9e8;
  --ce-project-accent-2: #b847df;
  --ce-project-glow: rgba(73, 169, 232, 0.3);
}

#consulting-ecosystem-bar[data-ce-theme="online-school"] {
  --ce-bar-start: #144b8d;
  --ce-bar-end: #0a2451;
  --ce-panel-start: #103b70;
  --ce-panel-end: #071a38;
  --ce-project-accent: #2e7bff;
  --ce-project-accent-2: #28b7ff;
  --ce-project-glow: rgba(46, 123, 255, 0.28);
}

#consulting-ecosystem-bar[data-ce-theme="apex"] {
  --ce-bar-start: #51420a;
  --ce-bar-end: #1e1a08;
  --ce-panel-start: #3c320b;
  --ce-panel-end: #141207;
  --ce-project-accent: #ffd400;
  --ce-project-accent-2: #ff9d00;
  --ce-project-glow: rgba(255, 212, 0, 0.26);
}

#consulting-ecosystem-bar[data-ce-theme="hr"] {
  --ce-bar-start: #49462f;
  --ce-bar-end: #17171b;
  --ce-panel-start: #343225;
  --ce-panel-end: #121318;
  --ce-project-accent: #ded9a7;
  --ce-project-accent-2: #a79a61;
  --ce-project-glow: rgba(222, 217, 167, 0.22);
}

#consulting-ecosystem-bar[data-ce-theme="bloggers"] {
  --ce-bar-start: #15456f;
  --ce-bar-end: #0d243c;
  --ce-panel-start: #123b61;
  --ce-panel-end: #091d30;
  --ce-project-accent: #22c8f1;
  --ce-project-accent-2: #3478ff;
  --ce-project-glow: rgba(34, 200, 241, 0.25);
}

#consulting-ecosystem-bar[data-ce-theme="gambling"] {
  --ce-bar-start: #0d4a40;
  --ce-bar-end: #061816;
  --ce-panel-start: #0b382f;
  --ce-panel-end: #071612;
  --ce-project-accent: #20d5ac;
  --ce-project-accent-2: #0b8c83;
  --ce-project-glow: rgba(32, 213, 172, 0.25);
}

#consulting-ecosystem-bar[data-ce-theme="vibecoding"] {
  --ce-bar-start: #4b2679;
  --ce-bar-end: #101633;
  --ce-panel-start: #351d59;
  --ce-panel-end: #0d1328;
  --ce-project-accent: #a663ff;
  --ce-project-accent-2: #36d9b6;
  --ce-project-glow: rgba(166, 99, 255, 0.27);
}

#consulting-ecosystem-bar[data-ce-theme="investments"] {
  --ce-bar-start: #3e301c;
  --ce-bar-end: #17130d;
  --ce-panel-start: #302718;
  --ce-panel-end: #12100c;
  --ce-project-accent: #ffd47f;
  --ce-project-accent-2: #c9963e;
  --ce-project-glow: rgba(255, 212, 127, 0.24);
}

#consulting-ecosystem-bar .ce-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  transform: rotate(45deg);
  filter: drop-shadow(0 8px 18px rgba(39, 100, 255, 0.24));
}

#consulting-ecosystem-bar .ce-mark i,
#consulting-ecosystem-bar .ce-mark i:nth-child(n) {
  position: static;
  width: auto;
  height: auto;
  inset: auto;
  display: block;
  border: 1px solid rgba(56, 220, 255, 0.4);
  border-radius: 3px;
  background: rgba(56, 220, 255, 0.18);
  box-shadow: none;
  transform: none;
}

#consulting-ecosystem-bar .ce-mark i:nth-child(2),
#consulting-ecosystem-bar .ce-mark i:nth-child(3) {
  border-color: transparent;
  background: linear-gradient(145deg, #38dcff, #2764ff 68%, #8c5bff);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}

#consulting-ecosystem-bar .ce-mark b {
  position: absolute;
  z-index: 2;
  inset: 9px;
  display: block;
  border-radius: 3px;
  background: #0a1222;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotate(-45deg);
}

#consulting-ecosystem-bar .ce-mark b::before,
#consulting-ecosystem-bar .ce-mark b::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 99px;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

#consulting-ecosystem-bar .ce-mark b::before { width: 9px; height: 1.5px; }
#consulting-ecosystem-bar .ce-mark b::after { width: 1.5px; height: 9px; }

#consulting-ecosystem-bar .ce-brand {
  min-width: 176px;
  gap: 12px;
}

#consulting-ecosystem-bar .ce-brand-copy { gap: 2px; }

#consulting-ecosystem-bar .ce-brand-copy strong {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1;
}

#consulting-ecosystem-bar .ce-brand-copy strong span {
  color: #38dcff;
  font-size: 19px;
  font-weight: 500;
}

#consulting-ecosystem-bar .ce-brand-copy small {
  color: rgba(255, 255, 255, 0.43);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.17em;
}

#consulting-ecosystem-bar .ce-nav-link,
#consulting-ecosystem-bar .ce-agency-trigger {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#consulting-ecosystem-bar .ce-nav-link:hover,
#consulting-ecosystem-bar .ce-nav-link:focus-visible,
#consulting-ecosystem-bar .ce-dropdown:hover > .ce-agency-trigger,
#consulting-ecosystem-bar .ce-dropdown:focus-within > .ce-agency-trigger {
  color: var(--ce-project-accent);
}

#consulting-ecosystem-bar .ce-nav-link::after,
#consulting-ecosystem-bar .ce-agency-trigger::after {
  background: linear-gradient(90deg, var(--ce-project-accent), var(--ce-project-accent-2));
}

#consulting-ecosystem-bar .ce-mega {
  width: min(1180px, calc(100vw - 40px));
  padding: 24px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 0 22px 22px;
  background:
    radial-gradient(circle at 10% 0%, var(--ce-project-glow), transparent 36%),
    linear-gradient(145deg, var(--ce-panel-start), var(--ce-panel-end));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

#consulting-ecosystem-bar .ce-mega-toggle {
  min-height: 25px;
  padding: 0 9px 8px;
  border: 0;
  color: var(--ce-project-accent);
  font-size: 10px;
  letter-spacing: 0.14em;
  pointer-events: none;
}

#consulting-ecosystem-bar .ce-mega-links {
  padding-top: 5px;
  gap: 0;
}

#consulting-ecosystem-bar .ce-mega-links a {
  width: 100%;
  margin: -4px 0;
  padding: 6px 9px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

#consulting-ecosystem-bar .ce-mega-links a:hover,
#consulting-ecosystem-bar .ce-mega-links a:focus-visible,
#consulting-ecosystem-bar .ce-education-content a:hover,
#consulting-ecosystem-bar .ce-education-content a:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ce-project-accent), var(--ce-project-accent-2));
  box-shadow: 0 8px 20px var(--ce-project-glow);
}

#consulting-ecosystem-bar .ce-education {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

#consulting-ecosystem-bar .ce-education-menu {
  left: 50%;
  width: 255px;
  grid-template-columns: minmax(0, 1fr);
  padding: 22px;
  transform: translate(-50%, 9px);
}

#consulting-ecosystem-bar .ce-education:hover .ce-education-menu,
#consulting-ecosystem-bar .ce-education:focus-within .ce-education-menu,
#consulting-ecosystem-bar .ce-education.ce-expanded .ce-education-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

#consulting-ecosystem-bar .ce-education-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#consulting-ecosystem-bar .ce-education-content > span {
  margin-bottom: 10px;
  color: var(--ce-project-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

#consulting-ecosystem-bar .ce-education-content > a {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

@media (max-width: 1220px) and (min-width: 1041px) {
  #consulting-ecosystem-bar .ce-brand { min-width: 158px; gap: 9px; }
  #consulting-ecosystem-bar .ce-mark { width: 30px; height: 30px; flex-basis: 30px; }
  #consulting-ecosystem-bar .ce-mark b { inset: 8px; }
  #consulting-ecosystem-bar .ce-brand-copy strong { font-size: 15px; }
  #consulting-ecosystem-bar .ce-brand-copy strong span { font-size: 17px; }
  #consulting-ecosystem-bar .ce-nav-link,
  #consulting-ecosystem-bar .ce-agency-trigger { font-size: 11px; }
}

@media (max-width: 1040px) {
  #consulting-ecosystem-bar {
    background:
      radial-gradient(circle at 18% -80%, var(--ce-project-glow), transparent 44%),
      linear-gradient(105deg, var(--ce-bar-start), var(--ce-bar-end));
  }

  #consulting-ecosystem-bar .ce-brand { min-width: 0; }
  #consulting-ecosystem-bar .ce-mark { width: 29px; height: 29px; flex-basis: 29px; }
  #consulting-ecosystem-bar .ce-mark b { inset: 8px; }
  #consulting-ecosystem-bar .ce-brand-copy strong { font-size: 14px; }
  #consulting-ecosystem-bar .ce-brand-copy strong span { font-size: 16px; }

  #consulting-ecosystem-bar .ce-nav-link,
  #consulting-ecosystem-bar .ce-agency-trigger {
    font-size: 15px;
  }

  #consulting-ecosystem-bar .ce-education {
    width: 100%;
    height: auto;
    display: block;
  }

  #consulting-ecosystem-bar .ce-education-menu,
  #consulting-ecosystem-bar .ce-education:hover .ce-education-menu,
  #consulting-ecosystem-bar .ce-education:focus-within .ce-education-menu {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
  }

  #consulting-ecosystem-bar .ce-education.ce-expanded .ce-education-menu,
  #consulting-ecosystem-bar .ce-education.ce-expanded:hover .ce-education-menu,
  #consulting-ecosystem-bar .ce-education.ce-expanded:focus-within .ce-education-menu {
    max-height: 180px;
    padding: 8px 0 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #consulting-ecosystem-bar .ce-education-content > span {
    margin: 0;
    padding: 10px 4px;
  }

  #consulting-ecosystem-bar .ce-education-content > a {
    min-height: 42px;
    padding: 10px 12px;
    border-left: 1px solid var(--ce-project-accent);
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
  }

  #consulting-ecosystem-bar .ce-mega-toggle {
    min-height: 48px;
    padding: 0 4px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: auto;
  }

  #consulting-ecosystem-bar .ce-mega-group.ce-expanded .ce-mega-toggle {
    color: var(--ce-project-accent);
  }

  #consulting-ecosystem-bar .ce-mega-links a {
    margin: 0;
    padding: 8px 12px;
    border-left-color: var(--ce-project-accent);
    border-radius: 0 8px 8px 0;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  #consulting-ecosystem-bar .ce-brand { width: 31px; }
  #consulting-ecosystem-bar .ce-brand-copy { display: none; }
}

/* Version 3: desktop header geometry matches the Consulting Plus home page. */
#consulting-ecosystem-bar .ce-desktop-messengers {
  display: flex;
  align-items: center;
  gap: 7px;
}

#consulting-ecosystem-bar .ce-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #3770ff, #754eff);
  box-shadow: 0 7px 18px rgba(53, 92, 255, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#consulting-ecosystem-bar .ce-messenger:hover,
#consulting-ecosystem-bar .ce-messenger:focus-visible {
  color: #ffffff;
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(53, 92, 255, 0.5);
}

#consulting-ecosystem-bar .ce-messenger svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

#consulting-ecosystem-bar .ce-messenger.ce-whatsapp svg {
  width: 19px;
  height: 19px;
}

#consulting-ecosystem-bar .ce-messenger.ce-max span {
  width: 17px;
  height: 17px;
  background: url("/max-messenger-mark.svg") center / contain no-repeat;
}

#consulting-ecosystem-bar .ce-simple-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#consulting-ecosystem-bar .ce-simple-group > span {
  display: block;
  margin-bottom: 10px;
  color: var(--ce-project-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

#consulting-ecosystem-bar .ce-simple-group > a {
  width: 100%;
  margin: -3px 0;
  padding: 7px 10px;
  display: block;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

#consulting-ecosystem-bar .ce-simple-group > a:hover,
#consulting-ecosystem-bar .ce-simple-group > a:focus-visible {
  color: #ffffff;
  outline: none;
  background: linear-gradient(135deg, var(--ce-project-accent), var(--ce-project-accent-2));
  box-shadow: 0 8px 20px var(--ce-project-glow);
  transform: translateX(3px);
}

@media (min-width: 1041px) {
  #consulting-ecosystem-bar {
    height: 76px;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    font-size: 13px;
    background:
      radial-gradient(circle at 15% -100%, var(--ce-project-glow), transparent 42%),
      linear-gradient(105deg, var(--ce-bar-start), var(--ce-bar-end));
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: none;
  }

  #consulting-ecosystem-bar .ce-bar-inner {
    width: min(1380px, calc(100% - 40px));
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    column-gap: 28px;
  }

  #consulting-ecosystem-bar .ce-brand {
    min-width: 0;
    gap: 12px;
  }

  #consulting-ecosystem-bar .ce-nav {
    min-width: 0;
    justify-self: center;
    justify-content: center;
    gap: 22px;
  }

  #consulting-ecosystem-bar .ce-nav-link,
  #consulting-ecosystem-bar .ce-agency-trigger {
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  #consulting-ecosystem-bar .ce-nav-link::after,
  #consulting-ecosystem-bar .ce-agency-trigger::after {
    bottom: 14px;
    height: 2px;
    background: linear-gradient(90deg, var(--ce-project-accent), var(--ce-project-accent-2));
    box-shadow: 0 0 12px var(--ce-project-glow);
  }

  #consulting-ecosystem-bar .ce-dropdown {
    height: 100%;
    display: flex;
    align-items: center;
  }

  #consulting-ecosystem-bar .ce-dropdown:hover > .ce-agency-trigger,
  #consulting-ecosystem-bar .ce-dropdown:focus-within > .ce-agency-trigger {
    color: var(--ce-project-accent);
  }

  #consulting-ecosystem-bar .ce-dropdown:hover > .ce-agency-trigger::after,
  #consulting-ecosystem-bar .ce-dropdown:focus-within > .ce-agency-trigger::after {
    transform: scaleX(1);
  }

  #consulting-ecosystem-bar .ce-dropdown:hover > .ce-agency-trigger .ce-chevron,
  #consulting-ecosystem-bar .ce-dropdown:focus-within > .ce-agency-trigger .ce-chevron {
    transform: rotate(225deg);
  }

  #consulting-ecosystem-bar .ce-mega {
    top: 70px;
    padding: 24px;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background:
      radial-gradient(circle at 10% 0%, var(--ce-project-glow), transparent 36%),
      linear-gradient(145deg, var(--ce-panel-start), var(--ce-panel-end));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  }

  #consulting-ecosystem-bar .ce-agency {
    position: relative;
  }

  #consulting-ecosystem-bar .ce-agency-menu {
    left: 50%;
    width: min(1180px, calc(100vw - 40px));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    transform: translate(-38%, 12px);
  }

  #consulting-ecosystem-bar .ce-agency:hover > .ce-agency-menu,
  #consulting-ecosystem-bar .ce-agency:focus-within > .ce-agency-menu,
  #consulting-ecosystem-bar .ce-agency.ce-expanded > .ce-agency-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-38%, 0);
  }

  #consulting-ecosystem-bar .ce-education,
  #consulting-ecosystem-bar .ce-investments {
    position: relative;
  }

  #consulting-ecosystem-bar .ce-education-menu,
  #consulting-ecosystem-bar .ce-investments-menu {
    left: 50%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    transform: translate(-42%, 12px);
  }

  #consulting-ecosystem-bar .ce-education-menu {
    width: 240px;
    padding: 22px;
  }

  #consulting-ecosystem-bar .ce-investments-menu {
    width: 270px;
    padding: 22px;
  }

  #consulting-ecosystem-bar .ce-education:hover > .ce-education-menu,
  #consulting-ecosystem-bar .ce-education:focus-within > .ce-education-menu,
  #consulting-ecosystem-bar .ce-education.ce-expanded > .ce-education-menu,
  #consulting-ecosystem-bar .ce-investments:hover > .ce-investments-menu,
  #consulting-ecosystem-bar .ce-investments:focus-within > .ce-investments-menu,
  #consulting-ecosystem-bar .ce-investments.ce-expanded > .ce-investments-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-42%, 0);
  }

  #consulting-ecosystem-bar .ce-mega-toggle {
    min-height: 25px;
    padding: 0 9px 8px;
    color: var(--ce-project-accent);
    font-size: 10px;
    letter-spacing: 0.14em;
    pointer-events: none;
  }

  #consulting-ecosystem-bar .ce-mega-links {
    padding-top: 5px;
    gap: 0;
  }

  #consulting-ecosystem-bar .ce-mega-links a {
    width: 100%;
    margin: -4px 0;
    padding: 6px 9px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
  }

  #consulting-ecosystem-bar .ce-actions {
    justify-self: end;
    gap: 12px;
  }

  #consulting-ecosystem-bar .ce-phone {
    display: none;
  }

  #consulting-ecosystem-bar .ce-cta {
    height: 42px;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #09101d;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  #consulting-ecosystem-bar .ce-cta span {
    margin-left: 10px;
  }

  #consulting-ecosystem-bar .ce-cta:hover,
  #consulting-ecosystem-bar .ce-cta:focus-visible {
    color: #09101d;
    outline: none;
    background: var(--ce-project-accent);
    transform: translateY(-1px);
  }
}

@media (min-width: 1041px) and (max-width: 1180px) {
  #consulting-ecosystem-bar .ce-bar-inner { column-gap: 14px; }
  #consulting-ecosystem-bar .ce-nav { gap: 14px; }
  #consulting-ecosystem-bar .ce-nav-link,
  #consulting-ecosystem-bar .ce-agency-trigger { font-size: 11px; }
  #consulting-ecosystem-bar .ce-cta { padding-inline: 14px; }
}

@media (min-width: 1041px) and (max-width: 1100px) {
  #consulting-ecosystem-bar .ce-bar-inner { column-gap: 12px; }
  #consulting-ecosystem-bar .ce-nav { gap: 8px; }
  #consulting-ecosystem-bar .ce-nav-link,
  #consulting-ecosystem-bar .ce-agency-trigger { font-size: 10px; }
  #consulting-ecosystem-bar .ce-desktop-messengers { gap: 5px; }
  #consulting-ecosystem-bar .ce-messenger { width: 28px; height: 28px; flex-basis: 28px; }
}

@media (max-width: 1040px) {
  #consulting-ecosystem-bar .ce-desktop-messengers { display: none; }

  #consulting-ecosystem-bar .ce-nav {
    background:
      radial-gradient(circle at 90% 6%, var(--ce-project-glow), transparent 35%),
      linear-gradient(145deg, var(--ce-panel-start), var(--ce-panel-end));
  }

  #consulting-ecosystem-bar .ce-dropdown {
    width: 100%;
    height: auto;
    display: block;
  }

  #consulting-ecosystem-bar .ce-dropdown > .ce-mega,
  #consulting-ecosystem-bar .ce-dropdown:hover > .ce-mega,
  #consulting-ecosystem-bar .ce-dropdown:focus-within > .ce-mega {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
  }

  #consulting-ecosystem-bar .ce-dropdown.ce-expanded > .ce-mega,
  #consulting-ecosystem-bar .ce-dropdown.ce-expanded:hover > .ce-mega,
  #consulting-ecosystem-bar .ce-dropdown.ce-expanded:focus-within > .ce-mega {
    max-height: 1600px;
    padding: 8px 0 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #consulting-ecosystem-bar .ce-dropdown.ce-expanded > .ce-dropdown-trigger .ce-chevron {
    margin-top: 3px;
    transform: rotate(225deg);
  }

  #consulting-ecosystem-bar .ce-simple-group > span {
    margin: 0;
    padding: 10px 4px;
  }

  #consulting-ecosystem-bar .ce-simple-group > a {
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border-left: 1px solid var(--ce-project-accent);
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
  }
}

/* Version 4: everything except the bar and panel backgrounds matches the home header. */
#consulting-ecosystem-bar,
#consulting-ecosystem-bar * {
  text-transform: none !important;
}

#consulting-ecosystem-bar .ce-brand-copy small,
#consulting-ecosystem-bar .ce-desktop-mega-label,
#consulting-ecosystem-bar .ce-mega-toggle,
#consulting-ecosystem-bar .ce-simple-group > span {
  text-transform: uppercase !important;
}

#consulting-ecosystem-bar .ce-desktop-mega-label {
  display: none;
}

#consulting-ecosystem-bar .ce-nav-link,
#consulting-ecosystem-bar .ce-agency-trigger,
#consulting-ecosystem-bar .ce-mega-links a,
#consulting-ecosystem-bar .ce-simple-group > a,
#consulting-ecosystem-bar .ce-cta,
#consulting-ecosystem-bar .ce-phone {
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-style: normal;
}

#consulting-ecosystem-bar .ce-nav-link:hover,
#consulting-ecosystem-bar .ce-nav-link:focus-visible,
#consulting-ecosystem-bar .ce-dropdown:hover > .ce-agency-trigger,
#consulting-ecosystem-bar .ce-dropdown:focus-within > .ce-agency-trigger {
  color: #65aaff;
}

#consulting-ecosystem-bar .ce-nav-link::after,
#consulting-ecosystem-bar .ce-agency-trigger::after {
  background: linear-gradient(90deg, #3976ff, #55b8ff);
  box-shadow: 0 0 12px rgba(57, 118, 255, 0.45);
}

#consulting-ecosystem-bar .ce-mega-links a:hover,
#consulting-ecosystem-bar .ce-mega-links a:focus-visible,
#consulting-ecosystem-bar .ce-simple-group > a:hover,
#consulting-ecosystem-bar .ce-simple-group > a:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #2764ff, #7655ff 65%, #38c9ff);
  box-shadow: 0 8px 20px rgba(39, 100, 255, 0.28);
}

#consulting-ecosystem-bar .ce-cta:hover,
#consulting-ecosystem-bar .ce-cta:focus-visible {
  background: #38dcff;
}

@media (min-width: 1041px) {
  #consulting-ecosystem-bar .ce-nav-link,
  #consulting-ecosystem-bar .ce-agency-trigger {
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
  }

  #consulting-ecosystem-bar .ce-mega-group,
  #consulting-ecosystem-bar .ce-simple-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #consulting-ecosystem-bar .ce-desktop-mega-label,
  #consulting-ecosystem-bar .ce-simple-group > span {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    color: #38dcff;
    background: transparent;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-align: left;
    white-space: nowrap;
  }

  #consulting-ecosystem-bar .ce-mega-toggle {
    display: none !important;
  }

  #consulting-ecosystem-bar .ce-mega-links {
    display: contents;
  }

  #consulting-ecosystem-bar .ce-mega-links a,
  #consulting-ecosystem-bar .ce-simple-group > a {
    width: 100%;
    min-height: 0;
    margin: -4px 0;
    padding: 6px 9px;
    display: block;
    border: 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: left;
    white-space: normal;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  }

  #consulting-ecosystem-bar .ce-mega-links a:hover,
  #consulting-ecosystem-bar .ce-mega-links a:focus-visible,
  #consulting-ecosystem-bar .ce-simple-group > a:hover,
  #consulting-ecosystem-bar .ce-simple-group > a:focus-visible {
    color: #ffffff;
    outline: none;
    background: linear-gradient(135deg, #2764ff, #7655ff 65%, #38c9ff);
    box-shadow: 0 8px 20px rgba(39, 100, 255, 0.28);
    transform: translateX(3px);
  }

  #consulting-ecosystem-bar .ce-agency-menu,
  #consulting-ecosystem-bar .ce-education-menu,
  #consulting-ecosystem-bar .ce-investments-menu {
    background:
      radial-gradient(circle at 10% 0%, var(--ce-project-glow), transparent 36%),
      linear-gradient(145deg, var(--ce-panel-start), var(--ce-panel-end));
  }
}

@media (min-width: 1041px) and (max-width: 1180px) {
  #consulting-ecosystem-bar .ce-nav-link,
  #consulting-ecosystem-bar .ce-agency-trigger {
    font-size: 11px;
  }
}

@media (min-width: 1041px) and (max-width: 1100px) {
  #consulting-ecosystem-bar .ce-nav-link,
  #consulting-ecosystem-bar .ce-agency-trigger {
    font-size: 10px;
  }
}

@media (max-width: 1040px) {
  #consulting-ecosystem-bar .ce-desktop-mega-label {
    display: none;
  }

  #consulting-ecosystem-bar .ce-mega-toggle {
    display: flex;
  }

  #consulting-ecosystem-bar .ce-mega-group.ce-expanded .ce-mega-toggle {
    color: #38dcff;
  }

  #consulting-ecosystem-bar .ce-mega-links a,
  #consulting-ecosystem-bar .ce-simple-group > a {
    border-left-color: rgba(56, 220, 255, 0.3);
  }

  #consulting-ecosystem-bar .ce-simple-group > span {
    color: #38dcff;
  }
}

/* Version 6: desktop column titles and links share one left alignment line. */
@media (min-width: 1041px) {
  #consulting-ecosystem-bar .ce-desktop-mega-label,
  #consulting-ecosystem-bar .ce-simple-group > span {
    width: 100%;
    padding-left: 9px;
    padding-right: 9px;
  }
}

/* Version 7: the header CTA uses the same smoother gradient fill everywhere. */
@media (min-width: 1041px) {
  #consulting-ecosystem-bar .ce-cta {
    color: #09101d;
    background-color: #ffffff;
    background-image: linear-gradient(135deg, #3770ff, #754eff);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 0 100%;
    transition: color 0.3s ease, background-size 0.46s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, transform 0.24s ease;
  }

  #consulting-ecosystem-bar .ce-cta:hover,
  #consulting-ecosystem-bar .ce-cta:focus-visible {
    color: #ffffff;
    background-color: #ffffff;
    background-image: linear-gradient(135deg, #3770ff, #754eff);
    background-size: 100% 100%;
    box-shadow: 0 12px 28px rgba(53, 92, 255, 0.34);
    transform: translateY(-1px);
  }
}

/* Version 13: preserve the pill silhouette while the gradient fills the CTA. */
@media (min-width: 1041px) {
  #consulting-ecosystem-bar .ce-cta,
  #consulting-ecosystem-bar .ce-cta:hover,
  #consulting-ecosystem-bar .ce-cta:focus-visible {
    border-radius: 999px !important;
    overflow: hidden;
    background-clip: padding-box;
  }
}

/* Version 8: the logo palette follows the active project theme. */
#consulting-ecosystem-bar .ce-mark {
  filter: drop-shadow(0 8px 18px var(--ce-project-glow));
}

#consulting-ecosystem-bar .ce-mark i,
#consulting-ecosystem-bar .ce-mark i:nth-child(n) {
  border-color: var(--ce-project-accent);
  background: linear-gradient(145deg, var(--ce-project-accent), var(--ce-project-accent-2));
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}

#consulting-ecosystem-bar .ce-mark i:nth-child(1),
#consulting-ecosystem-bar .ce-mark i:nth-child(4) {
  opacity: 0.46;
}

#consulting-ecosystem-bar .ce-mark i:nth-child(2),
#consulting-ecosystem-bar .ce-mark i:nth-child(3) {
  opacity: 1;
}

#consulting-ecosystem-bar .ce-brand-copy strong span {
  color: var(--ce-project-accent);
}

/* Version 9: the central plus has no dark backing tile. */
#consulting-ecosystem-bar .ce-mark b {
  background: transparent;
  box-shadow: none;
}

/* Version 10: preserve the original petal silhouette with a transparent center. */
#consulting-ecosystem-bar .ce-mark i:nth-child(1) {
  clip-path: polygon(0 0, 100% 0, 100% 46%, 46% 100%, 0 100%);
}

#consulting-ecosystem-bar .ce-mark i:nth-child(2) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 54% 100%, 0 46%);
}

#consulting-ecosystem-bar .ce-mark i:nth-child(3) {
  clip-path: polygon(0 0, 46% 0, 100% 54%, 100% 100%, 0 100%);
}

#consulting-ecosystem-bar .ce-mark i:nth-child(4) {
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 0 100%, 0 54%);
}

/* Version 5: project hover colors and a centered, non-jumping chevron. */
#consulting-ecosystem-bar .ce-mega-links a:hover,
#consulting-ecosystem-bar .ce-mega-links a:focus-visible,
#consulting-ecosystem-bar .ce-simple-group > a:hover,
#consulting-ecosystem-bar .ce-simple-group > a:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ce-project-accent), var(--ce-project-accent-2));
  box-shadow: 0 8px 20px var(--ce-project-glow);
}

#consulting-ecosystem-bar .ce-chevron {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin: 0 0 0 5px;
  display: inline-block;
  align-self: center;
  border: 0 !important;
  border-radius: 0;
  transform: none;
  transform-origin: 50% 50%;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

#consulting-ecosystem-bar .ce-chevron::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 43%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0 0 1px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

@media (min-width: 1041px) {
  #consulting-ecosystem-bar .ce-dropdown:hover > .ce-agency-trigger .ce-chevron,
  #consulting-ecosystem-bar .ce-dropdown:focus-within > .ce-agency-trigger .ce-chevron {
    margin-top: 0;
    transform: rotate(180deg);
  }
}

@media (max-width: 1040px) {
  #consulting-ecosystem-bar .ce-dropdown.ce-expanded > .ce-dropdown-trigger .ce-chevron,
  #consulting-ecosystem-bar .ce-mega-group.ce-expanded .ce-mega-toggle .ce-chevron {
    margin-top: 0;
    transform: rotate(180deg);
  }
}

/* Version 11: messenger buttons and the desktop CTA inherit the active project palette. */
#consulting-ecosystem-bar .ce-messenger {
  background: linear-gradient(135deg, var(--ce-project-accent), var(--ce-project-accent-2));
  box-shadow: 0 7px 18px var(--ce-project-glow);
}

#consulting-ecosystem-bar .ce-messenger:hover,
#consulting-ecosystem-bar .ce-messenger:focus-visible {
  box-shadow: 0 10px 22px var(--ce-project-glow);
}

@media (min-width: 1041px) {
  #consulting-ecosystem-bar .ce-cta {
    background-image: linear-gradient(135deg, var(--ce-project-accent), var(--ce-project-accent-2));
  }

  #consulting-ecosystem-bar .ce-cta:hover,
  #consulting-ecosystem-bar .ce-cta:focus-visible {
    background-image: linear-gradient(135deg, var(--ce-project-accent), var(--ce-project-accent-2));
    box-shadow: 0 12px 28px var(--ce-project-glow);
  }
}

/* Version 12: outlined project-colored CTA with a themed gradient hover. */
@media (min-width: 1041px) {
  #consulting-ecosystem-bar .ce-cta {
    color: #ffffff;
    border: 1px solid var(--ce-project-accent);
    background-color: transparent;
    background-image: linear-gradient(135deg, var(--ce-project-accent), var(--ce-project-accent-2));
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 0 100%;
    transition: color 0.3s ease, border-color 0.3s ease, background-size 0.46s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, transform 0.24s ease;
  }

  #consulting-ecosystem-bar .ce-cta:hover,
  #consulting-ecosystem-bar .ce-cta:focus-visible {
    color: #ffffff;
    border-color: transparent;
    background-color: transparent;
    background-image: linear-gradient(135deg, var(--ce-project-accent), var(--ce-project-accent-2));
    background-size: 100% 100%;
    box-shadow: 0 12px 28px var(--ce-project-glow);
    transform: translateY(-1px);
  }
}

/* Version 13: mobile ecosystem header mirrors the Consulting Plus home header. */
@media (max-width: 1040px) {
  #consulting-ecosystem-bar {
    height: 68px;
  }

  #consulting-ecosystem-bar .ce-bar-inner {
    width: calc(100% - 30px);
    grid-template-columns: max-content minmax(0, 1fr) 42px;
    column-gap: 0;
  }

  #consulting-ecosystem-bar .ce-brand {
    grid-column: 1;
    justify-self: start;
  }

  #consulting-ecosystem-bar .ce-actions {
    grid-column: 2;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  #consulting-ecosystem-bar .ce-phone {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  #consulting-ecosystem-bar .ce-desktop-messengers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  #consulting-ecosystem-bar .ce-messenger {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    box-shadow: 0 6px 14px var(--ce-project-glow);
  }

  #consulting-ecosystem-bar .ce-messenger svg {
    width: 12px;
    height: 12px;
  }

  #consulting-ecosystem-bar .ce-messenger.ce-whatsapp svg {
    width: 16px;
    height: 16px;
  }

  #consulting-ecosystem-bar .ce-messenger.ce-max span {
    width: 13px;
    height: 13px;
  }

  #consulting-ecosystem-bar .ce-menu-button {
    grid-column: 3;
    justify-self: end;
    width: 42px;
    height: 42px;
  }

  #consulting-ecosystem-bar .ce-menu-button i {
    left: 50%;
    transform: translateX(-50%);
  }

  #consulting-ecosystem-bar .ce-menu-button i:nth-child(1) { top: 14px; }
  #consulting-ecosystem-bar .ce-menu-button i:nth-child(2) { top: 20px; }
  #consulting-ecosystem-bar .ce-menu-button i:nth-child(3) { top: 26px; }

  #consulting-ecosystem-bar.ce-menu-open .ce-menu-button i:nth-child(1) {
    top: 20px;
    transform: translateX(-50%) rotate(45deg);
  }

  #consulting-ecosystem-bar.ce-menu-open .ce-menu-button i:nth-child(2) {
    opacity: 0;
  }

  #consulting-ecosystem-bar.ce-menu-open .ce-menu-button i:nth-child(3) {
    top: 20px;
    transform: translateX(-50%) rotate(-45deg);
  }

  #consulting-ecosystem-bar .ce-nav {
    inset: 68px 0 0;
    height: calc(100dvh - 68px);
  }
}

@media (max-width: 420px) {
  #consulting-ecosystem-bar .ce-bar-inner {
    width: calc(100% - 18px);
  }

  #consulting-ecosystem-bar .ce-phone {
    font-size: 15px;
  }
}

/* Version 14: larger mobile subsection labels. */
@media (max-width: 1040px) {
  #consulting-ecosystem-bar .ce-mega-toggle {
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: 0.06em;
  }
}

/* Version 15: keep the HR hero subtitle clear of the multiline heading on desktop. */
@media (min-width: 480px) {
  #rec1313464201 .tn-elem[data-elem-id="1757426040508"] {
    top: 385px !important;
  }
}

/* Version 16: keep the native VibeCoding School navigation below the ecosystem bar. */
#consulting-ecosystem-bar[data-ce-theme="vibecoding"] ~ #header {
  top: 71px !important;
}

#consulting-ecosystem-bar[data-ce-theme="vibecoding"] ~ #header .header-inner {
  height: 62px !important;
  box-sizing: border-box;
}

#consulting-ecosystem-bar[data-ce-theme="vibecoding"] ~ .mob-menu {
  top: 133px !important;
}

#consulting-ecosystem-bar[data-ce-theme="vibecoding"] ~ .page {
  padding-top: 85px !important;
}

@media (max-width: 1040px) {
  #consulting-ecosystem-bar[data-ce-theme="vibecoding"] ~ #header {
    top: 91px !important;
  }

  #consulting-ecosystem-bar[data-ce-theme="vibecoding"] ~ .mob-menu {
    top: 153px !important;
  }
}
