/* ========================================= */
/* NAVIGATION */
/* ========================================= */
a.btn.btn-primary.btn-lg.btn-demo {
    display: block;
}
.section_top-nav {
  position: relative;
  z-index: 100;
  padding-top: 1.5rem;
}
section.customer-story-more.customer-story-more--compact {
  padding 0;
}
.section_top-nav.mega-menu-active .nav-wrapper {
  /*   min-height: 7rem; */
/*   padding: 0 2.5rem !important; */

  /*   background: #fff; */
/*   border-radius: 1.25rem; */

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;

  /*   box-shadow: 0 0.75rem 2rem rgba(24,23,77,.08); */
}

/* LOGO */

.nav-logo img {
  /*   width: 7rem; */
  display: block;
}

/* DESKTOP MENU */

.nav-menu-desktop {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;

  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu-desktop a {
  text-decoration: none;
  color: #18174d;
  font-weight: 600;

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* CHEVRON */

.nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-chevron svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* CTA */

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-yellow {
  background: #FFE23C;
  color: #18174D;
}

/* ========================================= */
/* MEGA MENU */
/* ========================================= */

.mega-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

section#v2 .mega-menu {
  display: none;
  background: unset;
  box-shadow: unset;
}

.mega-menu.active {
  display: block;
}

.mega-menu-panel {
  margin-top: 0 !important;
  background: #fff;
  border-radius: 0 0 1.5rem 1.5rem;
  padding: 2.5rem;

  box-shadow: 0 1.5rem 3rem rgba(0,0,0,.12);
}

/* PLATFORM GRID */

.mega-menu-platform-grid {
  max-width: 72rem;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

/* RESOURCE GRID */

.mega-menu-resources-grid {
    display: grid;
    gap: 1.5rem 2rem;
    grid-template-columns: repeat(2, 1fr);
    max-width: 72rem;
    gap: 2rem;
}

a.mega-menu-item:hover {
  background: hsl(241deg 100% 65% / 5%);
  border-radius: 1rem;
}

/* ITEM */

.mega-menu-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  text-decoration: none;
  color: #18174D;
  align-items: center;
  justify-content: start;
  padding: 1rem;
}

.mega-icon {
  width: 44px;
  height: 44px;
  border-radius: 1rem;

  background: linear-gradient(180deg, #4F4BFF 0%, #3F3BCD 100%);

  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-icon img {
  /*   width: 1.5rem;
  height: 1.5rem; */
  object-fit: cover;
}

.mega-menu-item strong {
  display: block;
  /*   font-size: 1.1rem; */
  line-height: 1.2;
  margin-bottom: 0.35rem;
  font-size: 16px;
}

.mega-menu-item small {
  display: block;
  color: #18174D;
  line-height: 1.45;
}

/* FOOTER LINKS */

.mega-menu-links {
  grid-column: 1 / -1;

  display: flex;
  gap: 3rem;

  padding-top: 1rem;
}

.mega-menu-links a {
  text-decoration: none;
  color: #18174D;
  font-weight: bold;
}

/* ========================================= */
/* MOBILE */
/* ========================================= */
/* MOBILE DROPDOWN ROW */

#navMenuMobile .nav-item-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #18174d;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  height: auto;
  /*   padding: 16px 36px; */
  text-decoration: none;
  transition: background-color .2s ease;
  width: 100%;
}

#navMenuMobile {
  max-height: 100vh;
  overflow-y: auto;
  padding-bottom: 10vh;
}

/* TOGGLE BUTTON */
#navMenuMobile .dropdown-toggle svg,
#navMenuMobile button.nav-arrow svg {
  transition: transform 0.2s ease;
  color: #18174d;
  height: 20px;
  width: 20px;
}

/* ROTATE ARROW WHEN OPEN */
#navMenuMobile .dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

ul.nav-submenu li:last-child {
  border-bottom: unset;
  padding-bottom: unset;
}

/* HIDE SUBMENU BY DEFAULT */
#navMenuMobile .nav-submenu {
  display: none;
  padding: unset;
}

#navMenuMobile li {
  position: relative;
}

#navMenuMobile li a::after {
  content: '';
  position: absolute;
  inset: 0;
}

#navMenuMobile .nav-submenu a {
  font-weight: 500;
}

ul#navMenuMobile li.has-dropdown {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: wrap;
}

/* SHOW SUBMENU WHEN OPEN */
#navMenuMobile .nav-submenu.is-open {
  display: block;
}

.nav-toggle {
  display: none;
}

.nav-menu-mobile {
  display: none;
}

@media screen and (max-width: 1024px) {
  .section_top-nav#v2 {
    background: #fff !important;
    top: 0 !important;
  }
  .section_top-nav {
    margin: 0 !important;
    height: unset !important;
  }

  .section_top-nav .nav-wrapper {
    min-height: 5.5rem;
    padding: 0;

    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-menu-mobile li a:hover {
    background-color: unset;
    color: #4f4bff;
  }

/*   #v2 .nav-menu-desktop {
    display: flex !important;
  } */
  
  .nav-cta .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
    width: 2.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: #18174D;
    margin: 5px 0;
  }

  .nav-menu-mobile {
    display: none;
    margin-top: 1rem;

    background: #fff;
    /*     border-radius: 1rem; */
    padding: 1rem;

    box-shadow: 0 0.75rem 2rem rgba(24,23,77,.12);
  }

  .nav-menu-mobile.active {
    display: block;
  }

  .nav-menu-mobile li {
    list-style: none;
  }

  .nav-menu-mobile a {
    display: flex;
    justify-content: space-between;

    /*     padding: 1rem 0; */

    color: #18174D;
    text-decoration: none;
    font-weight: 600;
  }

  .mega-menu-container {
    display: none;
  }
}

/* ========= ADDED/FIXED - Fixed Sticky Nav ============ */
/* ========= ADDED/FIXED - Fixed Sticky Nav with floating spacing ============ */
/*
This keeps the nav fixed, but adds the original breathing room
so the menu is not glued to the viewport edge.
*/

:root {
  --nav-v2-height: 88px;
  --nav-v2-offset: 1rem;
}

/* JS adds this class after measuring the nav height */
body.has-sticky-v2-nav {
/*   padding-top: calc(var(--nav-v2-height) + var(--nav-v2-offset)); */
  padding-top: calc(var(--nav-v2-height));
}

.section_top-nav#v2 {
  position: fixed !important;
  top: var(--nav-v2-offset);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2147483000 !important;
  max-width: 100%;

  background: transparent;
  padding-top: 0 !important;
  margin: 0 !important;

  transition: box-shadow 0.2s ease;
}

/* Keep nav centered and away from left/right edges */
.section_top-nav#v2 > .padding-global {
  padding-left: clamp(1rem, 4vw, 4rem);
  padding-right: clamp(1rem, 4vw, 4rem);
  box-shadow: 0 .75rem 2rem rgba(24, 23, 77, .08);
  background: #fff;
  border-radius: 1.25rem;
}

/* Keep normal max-width behavior */
.section_top-nav#v2 .container-large {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* Actual nav card */
.section_top-nav#v2 .nav-wrapper {
/*   background: #fff;
  border-radius: 1.25rem; */
}

/* Optional subtle shadow after scroll */
.section_top-nav#v2.is-sticky .nav-wrapper {
/*   box-shadow: 0 0.75rem 2rem rgba(24, 23, 77, 0.08); */
}

/* Make sure mega menu appears directly below the floating nav */
.section_top-nav#v2 .mega-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 2147482999;
}

/* Keep mega menu aligned with the nav/container */
.section_top-nav#v2 .mega-menu-container > .padding-global,
.section_top-nav#v2 .mega-menu .padding-global {
  padding-left: clamp(1rem, 4vw, 4rem);
  padding-right: clamp(1rem, 4vw, 4rem);
}

/* Required because section#v2 .mega-menu is more specific than .mega-menu.active */
section#v2 .mega-menu.active {
  display: block;
}

/* Mobile menu stays under fixed nav and scrolls internally */
@media screen and (max-width: 1024px) {
  :root {
    --nav-v2-offset: 0.75rem;
  }

  .section_top-nav#v2 {
/*     top: var(--nav-v2-offset) !important; */
  }

  .section_top-nav#v2 > .padding-global {
    padding-left: 1rem;
    padding-right: 1rem;
    box-shadow: unset;
    border-radius: unset;
  }

  .section_top-nav#v2 .nav-wrapper {
    border-radius: 1rem;
  }
  
  .section_top-nav#v2 .nav-menu-mobile {
    margin-top: 0;
    max-height: calc(100vh - var(--nav-v2-height) - var(--nav-v2-offset));
    overflow-y: auto;
    border-radius: 0 0 1rem 1rem;
    top: unset;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* Optional: fully edge-to-edge mobile nav if needed */
@media screen and (max-width: 767px) {
  .section_top-nav#v2 > .padding-global {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
/* ========= END - Fixed Sticky Nav with floating spacing ============ */
/* =========================================
   CUSTOMER STORY MORE (COMPACT)
========================================= */

.customer-story-more {
  width: 100%;
  padding: 0 !important;
  background: #fff;
}
h3.customer-story-more__title {
  color: #35e0b4;
}
h4.customer-story-more__title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 400;
}

article.customer-story-more__compact-card .customer-story-more__card-link {
  color: #35e0b4;
  padding-top: .5rem;
}

.customer-story-more__container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}
.customer-story-more__body {
  gap: .25rem;
  padding: 1rem;
}
.customer-story-more__container p.ux-overline-regular {
  font-size: .875rem;
}
.customer-story-more__body p.ux-overline-regular {
  color: hsl(0deg 0% 100% / 30%);
}
.customer-story-more__container p {
    align-items: center;
    color: var(--purple, #4f4bff);
    display: inline-flex;
    font-weight: 700;
    gap: .65rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
}
/* =========================================
   HEADER
========================================= */

.customer-story-more__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: .5rem;
}

.customer-story-more__heading p {
  margin: 0;
  color: #4f4bff;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.customer-story-more__all-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #4f4bff;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}

.customer-story-more__all-link:hover {
  color: #18174d;
}

.customer-story-more__all-link span {
  transition: transform .2s ease;
}

.customer-story-more__all-link:hover span {
  transform: translateX(4px);
}

/* =========================================
   FEATURED CARD
========================================= */

.customer-story-more__compact-card {
  overflow: hidden;
  border-radius: 12px;
  background: #18174d;
  border: 1px solid rgba(24,23,77,.08);
  box-shadow: 0 12px 32px rgba(24,23,77,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.customer-story-more__compact-card:hover {
/*   transform: translateY(-4px); */
/*   box-shadow: 0 20px 44px rgba(24,23,77,.12); */
}

.customer-story-more__compact-media {
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.customer-story-more__compact-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}



/* =========================================
   STATS
========================================= */

.customer-story-more__compact-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.customer-story-more__compact-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.customer-story-more__compact-stat p {
    color: inherit;
    font-weight: inherit;
   text-transform: inherit;
}
.customer-story-more__compact-stat-value {
  flex: 0 0 110px;
  color: #4f4bff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.customer-story-more__compact-stat-copy {
  margin: 0;
  color: rgba(24,23,77,.72);
  line-height: 1.5;
}

/* =========================================
   TABLET
========================================= */

@media screen and (max-width:1024px){

  .customer-story-more{
    padding:3rem 2rem;
  }

  .customer-story-more__compact-media{
    aspect-ratio:16 / 9;
  }

  .customer-story-more__compact-stat{
    gap:1.5rem;
  }

  .customer-story-more__compact-stat-value{
    flex-basis:90px;
    font-size:1.75rem;
  }

}

/* =========================================
   MOBILE
========================================= */

@media screen and (max-width:767px){

  .customer-story-more{
    padding:2.5rem 1.25rem;
  }

  .customer-story-more__header{
    gap:1rem;
    align-items:flex-start;
  }

  .customer-story-more__compact-media{
    aspect-ratio:16 / 10;
  }

  .customer-story-more__compact-stats{
    gap:1.25rem;
  }

  .customer-story-more__compact-stat{
    align-items:flex-start;
    gap:1rem;
  }

  .customer-story-more__compact-stat-value{
    flex:0 0 78px;
    font-size:1.5rem;
  }

}