/* =========================================================================
   Ksolves Dynamic Header
   ========================================================================= */
:root {
  --km-gradient-brand: linear-gradient(
    90deg,
    #0000ff 0%,
    #4e49e0 33.654%,
    #d90094 66.827%,
    #ff0a0a 100%
  );
  --km-gradient-aihub: linear-gradient(
    90deg,
    #564ae8 0%,
    #ba62bc 26.92%,
    #e0678c 56.25%,
    #e85d68 100%
  );
  --km-gradient-panel: linear-gradient(
    103deg,
    rgba(241, 240, 255, 0.8) 0%,
    rgba(255, 243, 255, 0.8) 26.92%,
    rgba(246, 245, 255, 0.8) 56.25%,
    rgba(233, 232, 248, 0.8) 100%
  );

  --km-orb: conic-gradient(
    from 200deg,
    #4f46e5,
    #a855f7,
    #ec4899,
    #3b82f6,
    #4f46e5
  );
  --km-text: #111b29;
  --km-text-mobile: #212121;
  --km-cta-bg: #0f0232;
  --km-border: rgba(0, 0, 0, 0.08);
  --km-radius: 16px;
  --km-font: "Manrope", "Plus Jakarta Sans", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --km-shadow: 0 18px 50px -12px rgba(31, 15, 70, 0.28);
  --km-max: 1320px;
  --km-black: #000;
  --km-text-icon: #615f5f;
}

.global-beginnings__btn-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 4px;
}

.global-beginnings__btn-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #564ae8 0%,
    #ba62bc 26.92%,
    #e0678c 56.25%,
    #e85d68 100%
  );
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 0;
}

.global-beginnings__btn-wrap:hover::before {
  opacity: 0.85;
}

.global-beginnings__btn {
  display: flex;
  padding: 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  background: #0f0232 !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  border: none;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease-in-out;
}

.global-beginnings__btn-wrap:hover .global-beginnings__btn {
  transform: translateY(-1px);
}

/* reset-ish within header only */
.km-header * {
  box-sizing: border-box;
}

.km-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.km-header a {
  text-decoration: none;
  color: var(--km-black);
}

.km-header button {
  /* font: inherit; */
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--km-text-mobile);
}

.km-ico {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--km-text-mobile);
}

.km-ico-caret {
  transition: transform 0.25s ease;
}

/* ---------- sticky outer wrapper ---------- */
.km-header {
  position: sticky;
  /* position: fixed; */
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0px 16px 0;
  font-family: var(--km-font);
}

/* sit below the WordPress admin bar when logged in, so the float gap stays visible */
body.admin-bar .km-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .km-header {
    top: 46px;
  }
}
.km-header-inner {
  position: relative;
  max-width: var(--km-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  min-height: 72px;

  /* 1. We remove the background and blur from here so it doesn't break the dropdown */
  background: transparent;

  border: 0.5px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--km-radius);
  /* box-shadow: 0 12px 40px -12px rgba(31, 15, 70, 0.2),
    0 2px 8px rgba(31, 15, 70, 0.06); */
  z-index: 1; /* Establishes a stacking context */
}

/* 2. We move the header's background and blur to this pseudo-element instead! */
.km-header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

/* .km-header-inner {
  position: relative;
  max-width: var(--km-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 0.5px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--km-radius);
  box-shadow: 0 12px 40px -12px rgba(31, 15, 70, 0.2),
    0 2px 8px rgba(31, 15, 70, 0.06);
} */

/* ---------- logo ---------- */
.km-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 50px;
}

.km-logo img {
  max-height: 46px;
  width: auto;
  display: block;
}
@media screen and (max-width: 1200px) {
  .km-logo img {
    max-height: 38px;
    padding-left: 8px;
  }
}

.km-logo-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: #e11b22;
  line-height: 1;
  display: flex;
  flex-direction: column;
}

.km-logo-text small {
  color: #222;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------- desktop nav ---------- */
.km-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.km-menu {
  display: flex;
  align-items: center;
}

.km-item {
  position: static;
}

/* panels anchor to .km-header */

.km-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 26px 14px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  white-space: nowrap;
}

.km-trigger .km-label {
  transition: color 0.2s ease;
}

/* animated gradient underline under the hovered / open item */
.km-trigger::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--km-gradient-brand);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.km-item--dd:hover > .km-trigger::after,
.km-item--dd.is-open > .km-trigger::after {
  transform: scaleX(1);
}

/* label turns to the brand gradient on hover / open */
.km-item--dd:hover > .km-trigger .km-label:not(.km-label--gradient),
.km-item--dd.is-open > .km-trigger .km-label:not(.km-label--gradient) {
  background: var(--km-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.km-label--gradient {
  background: var(--km-gradient-aihub);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.km-item--dd:hover .km-ico-caret,
.km-item--dd.is-open .km-ico-caret {
  transform: rotate(180deg);
}

/* ---------- dropdown panel (shared) ---------- */
.km-panel {
  position: absolute;
  top: calc(100% + 10px); /* also fixes the "10x" typo */
  left: 24px;
  /* background: linear-gradient(115deg,
    rgba(255, 255, 255, 100%) 0%,
    rgba(255, 255, 255, 0.96) 55%,
    rgba(255, 255, 255, 0.96) 100%); */
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.75) 55%,
    rgba(255, 255, 255, 0.85) 100%
  );
  /* background: linear-gradient(115deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(246, 245, 255, 0.95) 55%,
    rgba(238, 236, 252, 0.96) 100%); */
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  border-radius: var(--km-radius);
  box-shadow: var(--km-shadow);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 20;
  will-change: transform;
}

.km-item.is-open .km-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  /* background: linear-gradient(115deg,
    rgba(255, 255, 255, 100%) 0%,
    rgba(255, 255, 255, 0.96) 55%,
    rgba(255, 255, 255, 0.96) 100%); */
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.75) 55%,
    rgba(255, 255, 255, 0.85) 100%
  );
  /* background: linear-gradient(115deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(246, 245, 255, 0.95) 55%,
    rgba(238, 236, 252, 0.96) 100%); */
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  will-change: transform;
}

.km-panel-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 24px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
}

.km-panel-head .km-ico-chevron {
  width: 28px;
  height: 28px;
}

/* link columns */
.km-cols {
  display: flex;
  gap: 12px;
  /* justify-content: space-around; */
}

.km-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.km-leaf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--km-text);
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.15s ease;
  /* white-space: nowrap; */
}

.km-leaf > span {
  flex: 0 0 auto;
  transition: color 0.2s ease;
}

.km-leaf .km-ico-arrow {
  width: 20px;
  height: 20px;
  opacity: 0.75;
  flex: 0 0 auto;
  color: #615f5f;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* hover: whole link slides right, text + arrow turn brand magenta */
.km-leaf:hover {
  transform: translateX(6px);
}

.km-leaf:hover > span {
  background: var(--km-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.km-leaf:hover .km-ico-arrow {
  color: #c2188e;
  opacity: 1;
}

/* ---------- simple panel ---------- */
.km-panel--simple {
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  min-width: 0;
}

.km-panel-main {
  padding: 24px;
}

.km-panel--simple.km-panel--1col .km-col {
  min-width: 240px;
}

/* optional right-side promo image (e.g. Services) */
.km-panel-figure {
  flex: 0 0 320px;
  align-self: stretch;
}

.km-panel-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.km-panel--simple.km-has-figure .km-panel-main {
  width: 560px;
  /* background: linear-gradient(115deg,
    rgba(255, 255, 255, 100%) 0%,
    rgba(255, 255, 255, 0.96) 55%,
    rgba(255, 255, 255, 0.96) 100%); */
  /* background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.75) 55%,
    rgba(255, 255, 255, 0.85) 100%
  ); */
  background: transparent !important;
  /* background: linear-gradient(115deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(246, 245, 255, 0.95) 55%,
    rgba(238, 236, 252, 0.96) 100%); */
  /* -webkit-backdrop-filter: blur(30px) saturate(150%); */
  /* backdrop-filter: blur(30px) saturate(150%); */
  backdrop-filter: none !important;
  will-change: transform;
}

.km-panel--simple.km-has-figure .km-cols {
  gap: 24px;
}

.km-panel--simple.km-has-figure .km-col {
  flex: 1 1 0;
  min-width: 0;
}

/* ---------- tabbed panel ---------- */
.km-panel--tabbed {
  width: 840px;
  max-width: calc(100vw - 32px);
  /* background: linear-gradient(115deg,
    rgba(255, 255, 255, 100%) 0%,
    rgba(255, 255, 255, 0.96) 55%,
    rgba(255, 255, 255, 0.96) 100%); */
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.75) 55%,
    rgba(255, 255, 255, 0.85) 100%
  );

  /* background: linear-gradient(115deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(246, 245, 255, 0.95) 55%,
    rgba(238, 236, 252, 0.96) 100%); */
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  will-change: transform;
}

.km-panel--tabbed .km-tab-content,
.km-panel--tabbed {
  display: flex;
}

.km-panel--tabbed {
  flex-direction: row;
  gap: 0;
  align-items: stretch;
}

.km-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 267px;
  flex: 0 0 auto;
  padding-right: 24px;
  border-right: 1px solid var(--km-border);
}

.km-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff !important;
  color: var(--km-text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.km-tab .km-ico-arrow {
  width: 22px;
  height: 22px;
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.km-tab:hover {
  box-shadow: 0 4px 14px -8px rgba(31, 15, 70, 0.4);
}

.km-tab:hover .km-ico-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.km-tab.is-active {
  background: var(--km-gradient-brand) !important;
  color: #fff;
}

.km-tab.is-active .km-ico-arrow {
  opacity: 1;
  color: #fff;
}

.km-tab-content {
  flex: 1 1 auto;
  flex-direction: column;
  padding: 8px 0 0 16px;
}

.km-tabpanels {
  position: relative;
}

.km-tabpanel {
  display: none;
}

.km-tabpanel.is-active {
  display: block;
}

.km-viewall {
  align-self: flex-end;
  margin-top: 14px;
  font-size: 12px;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(
    90deg,
    #0000ff 0%,
    #4e49e0 33.654%,
    #d90094 66.827%,
    #ff0a0a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

/* ---------- right-side actions ---------- */
.km-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.km-orb {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--km-orb);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(80, 40, 160, 0.35);
  animation: km-spin 8s linear infinite;
  flex: 0 0 auto;
}

.km-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.km-orb.km-orb--img {
  animation: none;
  background: #fff;
}

@keyframes km-spin {
  to {
    transform: rotate(360deg);
  }
}

.km-header .km-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--km-cta-bg);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 18px;
  border-radius: 4px;
  transition: opacity 0.15s ease;
  width: fit-content;
}

.km-header .km-cta:hover {
  opacity: 0.9;
}

/* ---------- hamburger ---------- */
.km-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  flex: 0 0 auto;
}

.km-burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.km-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.km-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.km-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- mobile drawer (hidden on desktop) ---------- */
.km-drawer {
  display: none;
}

.km-overlay {
  display: none;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 1025px) and (max-width: 1200px) {
  .km-trigger {
    padding: 24px 10px;
  }

  .km-tabs {
    width: 230px;
  }

  .km-panel--tabbed {
    width: 740px;
  }
}

/* ---- breakpoint to mobile (iPad Pro and down) ---- */
@media (max-width: 1024px) {
  .km-nav,
  .km-actions {
    display: none;
  }

  .km-burger {
    display: flex;
  }

  .km-header-inner {
    min-height: 64px;
    padding: 0 0;
  }

  .km-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1100;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 16px;
    border-radius: 8px;
    background: linear-gradient(
      103deg,
      rgba(241, 240, 255, 0.96) 0%,
      rgba(255, 243, 255, 0.96) 26.92%,
      rgba(246, 245, 255, 0.96) 56.25%,
      rgba(233, 232, 248, 0.96) 100%
    );
    box-shadow: 8px 0 40px -12px rgba(31, 15, 70, 0.35);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  }
  .km-header .km-close-icon {
    font-size: 24px !important;
    margin-top: 0px;
    font-weight: 500;
  }
  .km-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    padding-top: 0;
    padding-bottom: 55px;
    border-radius: 0;
  }

  /* drawer top bar: logo + close */
  .km-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 16px 16px 12px;
    margin-bottom: 4px;
    background: inherit;
    border-bottom: 1px solid var(--km-border);
    background-color: #fff;
  }

  .km-drawer-logo img {
    max-height: 30px;
    width: auto;
    display: block;
  }

  .km-drawer-logo .km-logo-text {
    font-weight: 800;
    font-size: 18px;
    color: #e11b22;
    line-height: 1;
    display: flex;
    flex-direction: column;
  }

  .km-drawer-logo .km-logo-text small {
    color: #222;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .km-drawer-close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #212121;
    background: #f9fafb !important;
  }

  .km-drawer-close:hover {
    background: rgba(0, 0, 0, 0.06);
  }

  .km-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(15, 2, 50, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
  }

  .km-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* accordion rows */
  .km-acc-item + .km-acc-item .km-acc-head {
    border-top: 1px solid var(--km-border);
  }

  .km-acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--km-text-mobile);
    text-align: left;
  }
  .km-acc-label.km-label--gradient {
    background: var(
      --stroke-1,
      linear-gradient(
        90deg,
        #564ae8 0%,
        #ba62bc 26.92%,
        #e0678c 56.25%,
        #e85d68 100%
      )
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
  }
  .km-acc-head .km-ico-caret {
    width: 22px;
    height: 22px;
  }

  .km-acc-item.is-open > .km-acc-head .km-ico-caret {
    transform: rotate(180deg);
  }

  .km-acc-body {
    display: none;
    padding: 12px;
  }

  .km-acc-item.is-open > .km-acc-body {
    display: block;
    background: #fff;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-radius: 8px;
  }

  .km-acc-leaf {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--km-text);
  }

  .km-acc-leaf .km-ico-arrow {
    width: 20px;
    height: 20px;
    opacity: 0.7;
  }

  /* nested category (tabbed menus) */
  .km-acc-sub {
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
  }

  .km-acc-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--km-text);
  }

  .km-acc-subhead .km-ico-caret {
    width: 22px;
    height: 22px;
  }

  .km-acc-sub.is-open .km-acc-subhead {
    background: var(--km-gradient-brand);
    color: #fff;
  }

  .km-acc-sub.is-open .km-acc-subhead .km-ico-caret {
    transform: rotate(180deg);
    color: #fff;
  }

  .km-acc-subbody {
    display: none;
    background: #fff;
  }

  .km-acc-sub.is-open .km-acc-subbody {
    display: block;
    padding: 4px 0;
  }

  .km-acc-leaf--deep {
    padding: 12px 24px;
    color: #323232;
  }

  .km-viewall--mobile {
    display: inline-block;
    margin: 8px 0 4px;
  }

  .km-cta--mobile {
    display: flex;
    margin-top: 16px;
  }
  .km-header ul {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .km-header {
    padding: 10px 12px 0;
  }

  .km-drawer {
    left: 0;
    right: 0;
    padding: 8px 0;
  }
  .km-header .km-cta {
    width: 95%;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .km-orb {
    animation: none;
  }

  .km-panel,
  .km-drawer,
  .km-overlay,
  .km-ico-caret,
  .km-trigger::after,
  .km-leaf,
  .km-leaf > span,
  .km-ico-arrow,
  .km-tab {
    transition: none;
  }
}
/* =========================================================================
   Whitish Frosted Glass Override 
   ========================================================================= */
/* .km-panel,
.km-item.is-open .km-panel,
.km-item:hover .km-panel,
.km-panel--simple.km-has-figure .km-panel-main,
.km-panel--tabbed {
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.88) 55%,
    rgba(255, 255, 255, 0.94) 100%
  ) !important;

  -webkit-backdrop-filter: blur(30px) saturate(150%) brightness(140%) !important;
  backdrop-filter: blur(30px) saturate(150%) brightness(140%) !important;
} */
/* =========================================================================
   Whitish Frosted Glass Override (Corrected)
   ========================================================================= */
/* 1. Apply the glass effect ONLY to the outer wrappers */
.km-panel,
.km-item.is-open .km-panel,
.km-item:hover .km-panel,
.km-panel--tabbed {
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.88) 55%,
    rgba(255, 255, 255, 0.94) 100%
  ) !important;
  -webkit-backdrop-filter: blur(30px) saturate(150%) brightness(140%) !important;
  backdrop-filter: blur(30px) saturate(150%) brightness(140%) !important;
}

/* 2. Force the inner text column to be transparent so it doesn't double-stack the white */
.km-panel--simple.km-has-figure .km-panel-main {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
/* =========================================================================
   Mobile Drawer Frosted Glass Override
   ========================================================================= */
@media (max-width: 1024px) {
  /* 1. Apply the glass effect to the main sliding drawer */
  .km-drawer {
    /* Slightly lower opacity than desktop so you can see the page behind it better on mobile */
    background: linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.75) 55%,
      rgba(255, 255, 255, 0.85) 100%
    ) !important;
    -webkit-backdrop-filter: blur(30px) saturate(150%) brightness(140%) !important;
    backdrop-filter: blur(30px) saturate(150%) brightness(140%) !important;
  }

  /* 2. Remove solid white backgrounds from inner accordion elements */
  .km-acc-item.is-open > .km-acc-body {
    background: rgba(
      255,
      255,
      255,
      0.3
    ) !important; /* Just a very subtle white wash to separate it */
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .km-acc-sub,
  .km-acc-subbody {
    background: transparent !important;
  }

  /* 3. Soften the close button background to match the glass theme */
  .km-drawer-close {
    background: rgba(0, 0, 0, 0.05) !important;
  }

  /* 4. (Optional) Give the dark background overlay a nice subtle blur too! */
  .km-overlay {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }
}
.z-index-head {
  z-index: 10000;
}
/* header top space */
/* main > section:first-child {
  padding-top: 200px;
}
@media (max-width: 768px) {
  main > section:first-child {
    padding-top: 135px !important;
  }
} */

/* =========================================================================
   Header Scale-Down + Drop on Scroll (Chronify-style)
   ========================================================================= */
.km-header-inner {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top center;
  will-change: transform;
}

.km-header.km-squeezed .km-header-inner {
  transform: scale(0.96) translateY(4px);
  box-shadow: 0 8px 30px -8px rgba(31, 15, 70, 0.2),
    0 2px 8px rgba(31, 15, 70, 0.06);
}

@media (max-width: 1024px) {
  .km-header.km-squeezed .km-header-inner {
    transform: scale(0.97) translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .km-header-inner {
    transition: none;
    will-change: auto;
  }
}

/* Show active menu start */
/* Parent trigger */
/* Desktop */

.km-trigger.is-active .km-label {
  background: var(--km-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.km-trigger.is-active {
  /* border-bottom: 2px solid var(--color-primary, #6C63FF); */
}

/* Active tab button */
.km-tab.is-active {
  /* color: var(--color-primary, #6C63FF); */
  background: rgba(108, 99, 255, 0.06);
}

/* Active sub-link */
.km-leaf.is-active {
  color: var(--color-primary, #6c63ff);
  background: rgba(108, 99, 255, 0.1);
  font-weight: 500;
  /* background: var(--km-gradient-aihub);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600; */
}
.km-leaf.is-active svg path {
  stroke: currentColor;
}

/* Active panel head */
.km-panel-head.is-active {
  /* color: var(--color-primary, #6c63ff); */
  background: var(--km-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  width: fit-content;
}

.km-leaf.is-active span {
  background: var(--km-gradient-brand) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
/* Mobile view */

/* ── Mobile: active leaf ─────────────────────────────────────────────────── */
.km-drawer .km-acc-leaf.is-active,
.km-drawer .km-acc-leaf--deep.is-active {
  color: var(--color-primary, #6c63ff);
  background: rgba(108, 99, 255, 0.06);
  font-weight: 500;
  border-radius: 6px;
}
.km-drawer .km-acc-leaf.is-active svg path,
.km-drawer .km-acc-leaf--deep.is-active svg path {
  stroke: var(--color-primary, #6c63ff);
}

/* ── Mobile: active sub-group header (e.g. "Salesforce") ────────────────── */
.km-drawer .km-acc-subhead.is-active {
  /* color: var(--color-primary, #6C63FF); */
  font-weight: 500;
}
.km-drawer .km-acc-subhead.is-active svg path {
  stroke: var(--color-primary, #6c63ff);
}

/* ── Mobile: active accordion head (e.g. "Products") ────────────────────── */
.km-drawer .km-acc-head.is-active {
  color: var(--color-primary, #6c63ff);
}
.km-drawer .km-acc-head.is-active .km-acc-label {
  background: var(--km-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.km-drawer .km-acc-head.is-active svg path {
  stroke: var(--color-primary, #6c63ff);
}
.km-drawer .km-acc-leaf.is-active span {
  background: var(--km-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* ── Mobile: gradient label active (AI Hub) ──────────────────────────────── */
.km-drawer .km-acc-item.is-active--gradient .km-label--gradient {
  background: var(--km-gradient-aihub);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
/*Show active menu end */
.km-tab:hover {
  background: var(--km-gradient-brand) !important;
  color: #fff;
}

.km-tab:hover .km-ico-arrow {
  color: #fff;
}
/* When hovering inside .km-tabs, remove gradient from the real active tab */
.km-tabs:hover .km-tab.is-active:not(:hover) {
  background: #fff !important;
  color: var(--km-text);
}

.km-tabs:hover .km-tab.is-active:not(:hover) .km-ico-arrow {
  color: var(--km-text-icon);
  opacity: 0.65;
}
/* new-mouse enter */
/* Tab being explored (hovered or browsing its links) */
.km-tab.is-hovering {
  background: var(--km-gradient-brand) !important;
  color: #fff;
}

.km-tab.is-hovering .km-ico-arrow {
  color: #fff;
  opacity: 1;
}

/* Dim the real active tab when exploring a different one */
.km-tab.is-active:not(.is-hovering) {
  background: #fff !important;
  color: var(--km-text);
}

.km-tab.is-active:not(.is-hovering) .km-ico-arrow {
  color: var(--km-text-icon);
  opacity: 0.65;
}
