body.pmty-desktop-scroll-lock {
  overflow: hidden;
  padding-right: 15px; 
}
body.pmty-mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}
/* Parent theme adds .mobile-open to body — use it for scroll lock */
body.mobile-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* --- Main Container --- */
body .pmty-25-header .container {
  max-width: 100%;
  margin: 0 auto;
/*   padding: 0; */
}
body .pmty-25-header .header {
  position: relative;
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-radius: 20px;
  max-width: 1440px;
  margin: 50px auto 0;
  height: 100px;
}

body .pmty-25-header .header.header-landing {
  background-color: transparent !important;
}

@media (max-width: 991px) {
  body .pmty-25-header .header {
    background-color: transparent !important;
  }
  body .pmty-25-header .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* --- Header Logo --- */
@media (min-width: 992px) {
  body .pmty-25-header .header-logo {
    margin-left: -20px;
  }
  /* body .pmty-25-header .pmty-25-mega-menu[data-menu-target="2"] .pmty-menu-heading,
  body .pmty-25-header .pmty-25-mega-menu[data-menu-target="3"] .pmty-menu-heading{
    display: none !important; */
  }
}
@media (min-width: 992px) and (max-width: 1430px) {
  body .pmty-25-header .header-logo img,
  body .pmty-25-header .header-logo svg {
    max-width: 270px;
    height: auto;
  }
}

/* DESKTOP NAVIGATION (Main Links)*/
@media (min-width: 992px) {
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li > a {
/*     color: #0F1F38; */
    font-weight: 500;
    transition: font-weight 0.1s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    cursor: pointer;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li > a::before {
    display: block;
    content: attr(data-text); 
    font-weight: 800; 
    height: 0;        
    overflow: hidden; 
    visibility: hidden;
  }
  body .pmty-25-header .header .header-menu > .hs-menu-wrapper > ul > li:hover > a,
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li > a:hover {
    border-bottom: none;
    opacity: 1;
    color: #0F1F38; 
    font-weight: 800;
    text-decoration: none;
    background: transparent;
  }
}

@media (min-width: 992px) and (max-width: 1430px) {
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li > a {
    font-size: 13px;
    padding-left: 8px;
    padding-right: 8px;
  }
  body .pmty-25-header .header-menu-right a {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* MEGA MENU CONTAINER & LAYOUT */
body .pmty-25-header .pmty-25-mega-menu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in, visibility 0.2s ease-in;
  position: absolute;
  left: 0;
  width: 100%;
}
body .pmty-25-header .pmty-25-mega-menu .mega-menu-box {
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}
body .pmty-25-header .pmty-25-mega-menu .container {
  width: 100vw;
  max-width: 1280px;
  margin: 0 auto;
}
body .pmty-25-header .pmty-25-mega-menu.pmty-mega-contained {
  left: 50%;
  transform: translateX(-50%);
  width: auto;          /* ← shrinks to content */
  max-width: 1280px;    /* ← but never exceeds container */
  border-radius: var(--mega-border-radius, 0px);
  overflow: hidden;
  display: inline-block; /* ← shrink-wraps to content width */
}
#border-rad {
  border-radius: var(--mega-border-radius, 25px);
}
body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li.has-mega-menu:hover .pmty-25-mega-menu {
  opacity: 1;
  visibility: visible;
}
body .pmty-25-header .column-separator {
  background-color: #a3a3a3;
}
@media (min-width: 992px) {
  .pmty-25-header .header-menu .hs-menu-wrapper > ul > li.has-mega-menu > a {
    pointer-events: none;
    cursor: default;
  }
  body .pmty-25-header .pmty-25-mega-menu .desktop-dynamic-col {
    flex-shrink: 0;
    flex-grow: 0;
  }

  /* The Border Attachment */
  body .pmty-25-header .pmty-25-mega-menu .mega-menu-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border-width: var(--mega-border-width, 0px);
    border-style: solid;
    border-color: var(--mega-border-color, transparent);
    border-radius: inherit;
    pointer-events: none;
    z-index: 10;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li.has-mega-menu {
    position: static !important; 
  }
}
@media (min-width: 992px) and (max-width: 1430px) {
  body .pmty-25-header .pmty-25-mega-menu .desktop-dynamic-col {
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
  }

  body .pmty-25-header .pmty-25-mega-menu .mega-menu-box {
    width: 100%;
    flex-wrap: wrap;
  }

  body .pmty-25-header .pmty-25-mega-menu .container {
    padding: 0 16px;
  }
  body .pmty-25-header .pmty-25-mega-menu .container { max-width: 100%; padding: 0 20px; }
}


/* Hide nav overlay on desktop so hover menus still work */
@media (min-width: 992px) {
  body .pmty-25-header .pmty-nav-overlay {
    display: none;
  }
}

/* All h4s in desktop mega menu */
@media (min-width: 992px) {
  body .pmty-25-header .pmty-25-mega-menu h4,
  body .pmty-25-header .pmty-25-mega-menu h5 {
    font-size: 0.9rem;
  }
}

/* COMPONENTS: CONTENT, VERTICAL MENU 02, IMAGES & LOGOS */
/* --- Content Variant --- */
@media (min-width: 992px) and (max-width: 1430px) {
  body .pmty-25-header .mega-menu_content,
  body .pmty-25-header .mega-menu_content p {
    font-size: 16px;
  }
}

/* --- Vertical Menu 02 --- */
body .pmty-25-header .vertical-menu-02-wrapper {
  margin-bottom: 0.3rem;
}
body .pmty-25-header .vertical-menu-02-wrapper .pmty-menu-heading {
  margin-bottom: 1rem;
  line-height: 1.2;
  display: flex;
  padding-left: 0;
  align-items: flex-end;
}
body .pmty-25-header .vertical-menu-02-wrapper .pmty-sub-heading {
  margin-bottom: 4px;
  line-height: 1.4;
  font-weight: 800;
}
body .pmty-25-header .vertical-menu-02-wrapper .pmty-description {
  line-height: 1.5;
}
body .pmty-25-header .vertical-menu-02-wrapper .pmty-menu-arrow {
  margin-top: 5px;
  color: var(--desktop-arrow-color, #ffffff);
  fill: var(--desktop-arrow-color, #ffffff);
  transition: transform 0.2s ease;
  flex-shrink: 0 !important;
}
body .pmty-25-header .vertical-menu-02-wrapper .pmty-menu-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}
body .pmty-25-header .vertical-menu-02-wrapper.has-desc .pmty-menu-heading {
  padding-left: 1rem; 
}
body .pmty-25-header .vertical-menu-02-wrapper:not(.has-desc) .pmty-menu-card {
  padding: 0.25rem 1rem 0.1rem 0;
  background-color: transparent;
}
body .pmty-25-header .vertical-menu-02-wrapper .pmty-menu-card {
  position: relative;
  z-index: 1;
  padding: 0.25rem 1rem 0.1rem;
}
body .pmty-25-header .vertical-menu-02-wrapper .pmty-menu-card.is-clickable {
  cursor: pointer; 
}
body .pmty-25-header .vertical-menu-02-wrapper .pmty-menu-card.is-clickable:hover .pmty-menu-arrow {
  transform: translateX(4px); 
}
body .pmty-25-header .vertical-menu-02-wrapper.has-desc .pmty-menu-card.is-clickable:hover {
  background-color: transparent; 
}
@media (min-width: 992px) {
  /* --- Image Variant --- */
  body .pmty-25-header .mega-menu-image-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  body .pmty-25-header .mega-menu-image-card img {
    width: 80%;
    height: auto;
    margin: 0 auto;
  }
}

@media (min-width: 992px) and (max-width: 1430px) {
  body .pmty-25-header .vertical-menu-02-wrapper .pmty-menu-heading,
  body .pmty-25-header .vertical-menu-02-wrapper a span {
    font-size: 20px !important;
  }
  body .pmty-25-header .vertical-menu-02-wrapper .pmty-sub-heading {
    font-size: 13px;
  }
}

/* --- Logo Grid --- */
body .pmty-25-header .logo-card img.grayscale-mode {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
body .pmty-25-header .logo-card.persistent-grayscale:hover img.grayscale-mode {
  filter: grayscale(100%);
}
body .pmty-25-header .logo-card.is-linked {
  cursor: pointer;
}

/* --- Stretched Link Utility --- */
body .pmty-25-header .stretched-link {
  position: absolute !important;
  height: 100% !important;
  z-index: 10 !important;
  padding: 0 !important;
}

/* MOBILE MENU (max-width: 991px) */
@media (max-width: 991px) {
  
body .pmty-25-header .header {
    margin: 0px auto 0;
    position: relative;
    z-index: 10000;
}

body .pmty-25-header .header .mobile-image-wrapper {
  display: none !important;
}

  body .pmty-25-header .pmty-25-mega-menu .mega-menu-box {
    display: none !important;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li.has-mega-menu {
    position: relative !important;
  }
    /* mm is moved to wrapper level before pmty-slide-open is set,
     so target it as a direct child of wrapper (outside > ul's transform).
     position:absolute fills the wrapper exactly; overflow:hidden on the
     wrapper clips the slide animation to the card bounds automatically. */
  body .pmty-25-header .header-menu .hs-menu-wrapper:has(li.pmty-slide-open) > .pmty-25-mega-menu {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    inset: 0 !important;
    z-index: 99999;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    animation: slideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  /* The .container child has "hidden" class — override display:none */
  body .pmty-25-header .header-menu .hs-menu-wrapper:has(li.pmty-slide-open) > .pmty-25-mega-menu .container {
    display: block !important;
    height: 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  /* Show mobile panel, force white bg + dark text regardless of theme color fields */
  body .pmty-25-header .header-menu .hs-menu-wrapper:has(li.pmty-slide-open) > .pmty-25-mega-menu .mobile-slide-menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #ffffff !important;
    color: #0F1F38 !important;
  }
  /* Close (×) button not needed in the sub-menu — back button handles navigation */
  body .pmty-25-header .header-menu .hs-menu-wrapper:has(li.pmty-slide-open) > .pmty-25-mega-menu .mobile-close-btn {
    display: none;
  }
  /* Structure Resets */
  body .pmty-25-header .pmty-25-mega-menu::after {
    display: none; 
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper .child-trigger {
    display: none;
  }
  body .pmty-25-header .pmty-25-mega-menu { 
    display: none; 
  } 

  /* Wrapper — rounded card container, clips first-level slide animation */
  body .pmty-25-header .header-menu .hs-menu-wrapper {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 100px);
    height: calc(100dvh - 100px);
    z-index: 9000;
    background-color: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 24px 24px 0 0;
  }

  /* Primary List Base */
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul {
    border-top: 1px solid #e5e7eb;
    height: 100%;
    overflow-y: auto;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    padding-bottom: 24px;
    box-sizing: border-box;
  }
  /* When a sub-menu is open, slide the first-level list fully off to the left */
  body .pmty-25-header .header-menu .hs-menu-wrapper:has(li.pmty-slide-open) > ul {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li {
    display: block;
    border-bottom: 1px solid #e5e7eb;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    font-weight: 400;
    font-size: 16px;
    color: #0F1F38;
    text-decoration: none;
    position: relative;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li.active > a,
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li > a:hover {
    font-weight: 800;
    color: #0F1F38;
    opacity: 1;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li.active > a::after {
    border-color: #0F1F38;
    opacity: 1;
  }
  .header-menu .hs-menu-wrapper > ul li a {
    display: flex;
    padding: 0 20px;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li.hs-item-has-children > a::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #0F1F38;
    border-right: 2px solid #0F1F38;
    transform: rotate(45deg);
    margin-left: 10px;
  }

  /* Nav overlay — transparent, sits above the <a> to own the click */
  body .pmty-25-header .pmty-nav-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    cursor: pointer;
  }

  body .pmty-25-header .mobile-column-group:empty,
  body .pmty-25-header .mobile-column-group:not(:has(*)) {
    display: none;
  }

  /* Slide Header */
  body .pmty-25-header .mobile-slide-header {
    flex: 0 0 auto;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
  }
  body .pmty-25-header .mobile-back-btn {
    display: flex;
    align-items: center;
    color: #698fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
  }
  body .pmty-25-header .mobile-back-btn svg {
    margin-right: 8px;
    stroke: #698fff;
  }
  body .pmty-25-header .mobile-close-btn { 
    color: #0F1F38; 
    padding: 5px;
    cursor: pointer;
  }
  body .pmty-25-header .mobile-slide-menu {
    display: flex;
    flex-direction: column;
    height: 100%; 
    width: 100%;
    flex: 1;
    min-height: 100%;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li.pmty-slide-open > a {
    color: #0F1F38 !important;
    opacity: 1 !important;
  }


  /* Scroll Container & Blue Border */
  body .pmty-25-header .mobile-scroll-container {
    flex: 1 1 auto;
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch; 
    box-sizing: border-box;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }
  body .pmty-25-header .mobile-hero-header {
    padding: 25px 20px 20px;
    max-width: 90%;
  }
  body .pmty-25-header .mobile-hero-header h4 {
    color: inherit;
    font-weight: 900;
    font-size: 30px !important;
    font-weight: 800 !important;
    text-transform: none;
    margin: 0;
    font-size: 1.2rem !important;
    font-family: 'Inter' !important; 
  }
  body .pmty-25-header .mobile-hero-header p { 
    font-size: 21px;
    color: inherit; 
    margin-top: 4px; 
    line-height: 1.4; 
    font-weight: 400;
  }
  body .pmty-25-header .mobile-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 0 24px 24px 24px; 
    margin-top: 1rem;
  }
  body .pmty-25-header .mobile-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f2f4ff; 
    border-radius: 8px;
    padding: 30px;
    min-height: 110px; 
  }
  body .pmty-25-header .mobile-logo-item img {
    max-width: 100%;
    height: auto;
    max-height: 45px;
    object-fit: contain;
  }
  body .pmty-25-header .mobile-section-header h4 {
    color: inherit;
    font-weight: 700;
    font-size: 20px !important;
    text-transform: none;
    margin: 0; 
    padding: 15px 20px 10px;
    font-family: 'Inter' !important;
  }

  body .pmty-25-header .mobile-section-header p { 
    font-size: 13px;
    color: inherit; 
    margin-top: 4px; 
    line-height: 1.4; 
  }
  body .pmty-25-header .mobile-nav-link {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 12px 20px; 
    text-decoration: none; 
    background-color: transparent;
  }
  body .pmty-25-header .mobile-section-header {
    border-top: 1px solid rgba(255,255,255,0.15);
    font-weight: 800;
    color: inherit; 
    font-size: 18px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  body .pmty-25-header .mobile-scroll-container > .mobile-column-group:first-child .mobile-section-header:first-of-type {
    border-top: none;
    margin: 0;
    padding: 0;
  }
  body .pmty-25-header .mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding-right: 15px; 
  }
  body .pmty-25-header .mobile-nav-link .link-text {
    color: inherit; 
    font-weight: 500; 
    font-size: 16px; 
    line-height: 1.2;
  }
  body .pmty-25-header .mobile-nav-link .link-sub-text {
    color: #0F1F38;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.4;
  }
  body .pmty-25-header .mobile-nav-link .link-description {
    display: block;
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
    margin-top: 4px;
    line-height: 1.45;
  }
  body .pmty-25-header .mobile-nav-link .link-icon {
    color: #15154a;
    flex-shrink: 0;
  }
  body .pmty-25-header .mobile-nav-link .link-icon svg {
    fill: none;
    stroke: #15154a;
    transform: scale(0.9);
  }

  /* Mobile Footer & Buttons */
  body .pmty-25-header .mobile-menu-footer {
    flex: 0 0 auto;
    background-color: #ffffff;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
  }
  body .pmty-25-header .mobile-slide-menu .mobile-menu-footer .mobile-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 2px solid #0F1F38;
    background-color: transparent;
    border-radius: 50px;
    color: #0F1F38;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    width: auto;
    white-space: nowrap;
  }
  body .pmty-25-header .mobile-btn-pill svg {
    margin-left: 8px;
  }
  body .pmty-25-header .mobile-btn-pill--demo {
    background-color: #15154a;
    border: none;
    color: #ffffff;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li:last-child {
    border-bottom: none;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li:last-child > a {
    width: auto;
    display: inline-flex;
    justify-content: center;
    padding: 10px 16px;
    border: 2px solid #0F1F38 !important;
    background-color: transparent !important;
    color: #0F1F38 !important;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 13px;
    white-space: nowrap;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li:last-child > a.mobile-demo-btn {
    background-color: #15154a !important;
    border: none !important;
    color: #ffffff !important;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li:last-child > a::after { display: none; }
  body .pmty-25-header .header-menu-right { position: absolute;
    bottom: 20px;
    width: 100%; 
    justify-content: center;
    display: flex;
  }
  body .pmty-25-header .header-menu .hs-menu-wrapper > ul > li:hover > a {
    color: #0F1F38 !important;
    opacity: 1 !important;
    background-color: transparent !important;
  }
  body .pmty-25-header .header-menu.js-enabled {
    margin-right: 1rem;
  }
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes slideOut {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}