.header-section {
  position: sticky;
  top: 0;
  z-index: 1500;
  padding: 0;
  background: linear-gradient(110deg, #ffffff 0%, #faf9fd 48%, #f1edfa 100%);
  box-shadow: 0 4px 18px rgba(12, 19, 79, 0.08);
}

html {
  overflow-x: clip;
}

.sticky-site-image-icons {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sticky-site-image-item {
  position: relative;
  width: 52px;
  height: 52px;
  outline: none;
}

.sticky-site-image-item > img {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  object-fit: contain;
}

.sticky-site-image-tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  z-index: 1;
  width: min(260px, calc(100vw - 100px));
  padding: 14px 16px;
  border: 1px solid rgba(12, 19, 79, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(12, 19, 79, 0.2);
  color: #0c134f;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.sticky-site-image-tooltip strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.sticky-site-image-tooltip p {
  margin: 5px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

.sticky-site-image-item:hover .sticky-site-image-tooltip,
.sticky-site-image-item:focus .sticky-site-image-tooltip,
.sticky-site-image-item:focus-within .sticky-site-image-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
  visibility: visible;
}

.sticky-site-image-item:focus-visible > img {
  outline: 2px solid #5c469c;
  outline-offset: 3px;
}

.header-section .header-container {
  display: grid;
  width: 100%;
  max-width: none;
  min-height: 160px;
  grid-template-columns: clamp(230px, 22vw, 350px) minmax(0, 1fr);
  grid-template-rows: 58px 102px;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
}

.header-section .logo {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  grid-column: 1;
  grid-row: 1 / 3;
  align-items: center;
  justify-content: center;
  padding: 20px 35px 20px 20px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%);
}

.header-section .logo img {
  display: block;
  width: min(210px, 100%);
  height: auto;
  margin: 0;
  object-fit: contain;
}

.site-header-topbar {
  box-sizing: border-box;
  display: flex;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(22px, 3vw, 48px);
  background: linear-gradient(110deg, #0c134f 0%, #21195f 58%, #392477 100%);
  color: #fff;
  font-size: 14px;
}

.site-header-top-links,
.site-header-contact {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.site-header-top-links a,
.site-header-top-links span,
.site-header-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.site-header-top-links a:hover,
.site-header-contact a:hover {
  color: #d4adfc;
}

.site-header-top-links span[aria-disabled="true"] {
  cursor: default;
}

.site-header-top-links a:focus-visible,
.site-header-contact a:focus-visible,
.header-section .main-nav a:focus-visible,
.header-section .nav-dropdown-toggle:focus-visible,
.header-section .menu-toggle:focus-visible {
  outline: 2px solid #5c469c;
  outline-offset: 4px;
}

.site-header-top-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.site-header-top-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-section .main-nav {
  display: flex;
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.5vw, 24px);
  margin: 0;
  padding: 0 clamp(16px, 2vw, 32px);
  background: linear-gradient(100deg, #ffffff 0%, #fcfbfe 54%, #f3effa 100%);
}

.header-section .divide {
  display: flex;
  min-width: 0;
  align-items: center;
}

.header-section .divide ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.35vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-section .divide li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
}

.header-section .divide a {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #161616;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.header-section .divide a:hover {
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #5c469c;
  font-weight: 600;
}

.header-section .nav-dropdown-toggle {
  display: inline-flex;
  width: 28px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #161616;
  cursor: pointer;
}

.header-section .nav-chevron {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transition: transform 160ms ease;
}

.header-section .nav-item.is-open > .nav-dropdown-toggle .nav-chevron {
  transform: translateY(3px) rotate(225deg);
}

.header-section .nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -18px;
  z-index: 1600;
  display: flex;
  min-width: 245px;
  flex-direction: column;
  gap: 0;
  padding: 10px;
  border: 1px solid #ececf3;
  border-radius: 10px;
  background: linear-gradient(155deg, #ffffff 0%, #fcfbfe 58%, #f3effa 100%);
  box-shadow: 0 14px 34px rgba(12, 19, 79, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
  visibility: hidden;
}

.header-section .nav-item.is-open > .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.header-section .nav-item.product-nav-item > ul.product-mega-dropdown {
  position: fixed;
  top: 160px;
  left: 50vw;
  display: grid;
  width: min(1180px, calc(100vw - 36px));
  min-width: 0;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-items: start;
  gap: 4px 24px;
  padding: 0 18px 14px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(12, 19, 79, 0.16);
  transform: translate(-50%, 8px);
}

.header-section .nav-item.product-nav-item.is-open > ul.product-mega-dropdown {
  transform: translate(-50%, 0);
}

.header-section .product-mega-heading {
  grid-column: 1 / -1;
  padding: 16px 2px 12px;
  border-bottom: 1px solid #e7e8ed;
  color: #0c134f;
  font-size: 16px;
  font-weight: 700;
}

.header-section .product-mega-column,
.header-section .product-mega-links {
  min-width: 0;
}

.header-section .product-mega-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-section .divide ul.product-mega-links {
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
}

.header-section .divide ul.product-mega-dropdown .product-mega-entry a {
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-radius: 4px;
  color: #33343a;
  font-size: 14px;
  font-weight: 500;
  white-space: normal;
}

.header-section .divide ul.product-mega-dropdown .product-mega-entry a:hover {
  padding: 8px 4px;
  background: #f7f6fb;
  color: #5c469c;
}

.header-section .product-mega-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  color: #0c134f;
}

.header-section .product-mega-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.header-section .product-mega-icon .product-icon-accent {
  stroke: #e8ad32;
}

.header-section .nav-dropdown li {
  display: block;
  width: 100%;
}

.header-section .divide .nav-dropdown a {
  display: flex;
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  color: #0c134f;
  font-size: 14px;
  font-weight: 500;
  white-space: normal;
}

.header-section .divide .nav-dropdown a:hover {
  padding: 10px 12px;
  background: #f4f1fa;
  color: #5c469c;
}

.header-section .header-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #0c134f;
  border-radius: 2px;
  background: #fff;
  color: #0c134f;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.header-section .header-action:hover {
  background: #0c134f;
  color: #fff;
}

.header-section .header-action-primary {
  border-color: #fff;
  background: #fff;
  color: #0c134f;
}

.header-section .header-action-primary:hover {
  border-color: #0c134f;
  background: #0c134f;
  color: #fff;
}

.header-section .menu-toggle {
  display: none;
}

@media (max-width: 1250px) {
  .header-section .header-container {
    grid-template-columns: clamp(205px, 20vw, 250px) minmax(0, 1fr);
  }

  .header-section .main-nav {
    gap: 12px;
    padding-right: 18px;
    padding-left: 12px;
  }

  .header-section .divide ul {
    gap: 12px;
  }

  .header-section .divide a {
    font-size: 15px;
  }

  .header-section .header-action {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (max-width: 1050px) {
  .header-section {
    padding: 0;
    background: #fff;
  }

  .header-section .header-container {
    box-sizing: border-box;
    min-height: 110px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 72px 38px;
  }

  .header-section .logo {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    padding: 12px 16px;
    clip-path: none;
  }

  .header-section .logo img {
    width: min(190px, 60vw);
  }

  .site-header-topbar {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 38px;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    font-size: 12px;
    overflow: hidden;
  }

  .site-header-top-links,
  .site-header-contact {
    gap: 12px;
  }

  .site-header-top-links span[aria-disabled="true"] {
    display: none;
  }

  .site-header-top-links a,
  .site-header-contact a {
    font-size: 12px;
  }

  .header-section .menu-toggle {
    position: relative;
    top: auto;
    right: auto;
    z-index: 2002;
    display: inline-flex;
    width: 52px;
    height: 52px;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #0c134f;
    font-size: 32px;
    line-height: 1;
  }

  .header-section .main-nav,
  .header-section .main-nav.open,
  .header-section .main-nav.active {
    box-sizing: border-box;
    position: fixed;
    top: 110px;
    right: 0;
    z-index: 2001;
    display: flex;
    width: min(420px, 100%);
    height: calc(100vh - 110px);
    height: calc(100dvh - 110px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px 22px 28px;
    background: #fff;
    box-shadow: -12px 0 32px rgba(12, 19, 79, 0.18);
    pointer-events: none;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 0s linear 220ms;
  }

  .header-section .main-nav.open,
  .header-section .main-nav.active {
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
    box-shadow: -12px 0 32px rgba(12, 19, 79, 0.18), 0 0 0 100vmax rgba(12, 19, 79, 0.28);
    transition-delay: 0s;
  }

  .header-section .divide,
  .header-section .divide > ul {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header-section .divide > ul > li:nth-child(1) {
    order: 1;
  }

  .header-section .divide > ul > li:nth-child(3) {
    order: 2;
  }

  .header-section .divide > ul > li.product-nav-item {
    order: 3;
  }

  .header-section .divide > ul > li.pages-nav-item {
    order: 4;
  }

  .header-section .divide > ul > li:nth-child(2) {
    order: 5;
  }

  .header-section .divide > ul > li:nth-child(6) {
    order: 6;
  }

  .header-section .divide li {
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ececf3;
  }

  .header-section .divide a {
    min-height: 48px;
    flex: 1;
    justify-content: flex-start;
    padding: 12px 4px;
    color: #0c134f;
    font-size: 16px;
    text-align: left;
    white-space: normal;
  }

  .header-section .divide a:hover {
    padding: 12px 4px;
    border: 0;
    color: #5c469c;
  }

  .header-section .nav-dropdown-toggle {
    width: 42px;
    height: 48px;
  }

  .header-section .divide ul.nav-dropdown {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 0 0 8px 14px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .header-section .nav-item.is-open > ul.nav-dropdown {
    display: flex;
  }

  .header-section .nav-item.product-nav-item > ul.product-mega-dropdown,
  .header-section .nav-item.product-nav-item.is-open > ul.product-mega-dropdown {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0;
    padding: 0 0 8px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  .header-section .nav-item.product-nav-item > ul.product-mega-dropdown {
    display: none;
  }

  .header-section .nav-item.product-nav-item.is-open > ul.product-mega-dropdown {
    display: grid;
  }

  .header-section .product-mega-links {
    gap: 0;
  }

  .header-section .product-mega-heading {
    padding: 12px 12px 8px;
  }

  .header-section .divide ul.product-mega-dropdown .product-mega-entry a {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .header-section .divide ul.product-mega-dropdown .product-mega-entry a:hover {
    padding: 8px 12px;
  }

  .header-section .divide .nav-dropdown a {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .header-section .divide .nav-dropdown a:hover {
    padding: 10px 12px;
  }

  .header-section .header-action {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 480px) {
  .sticky-site-image-icons {
    left: 12px;
  }

  .header-section .header-container {
    min-height: 110px;
    grid-template-rows: 72px 38px;
  }

  .site-header-topbar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .site-header-top-links,
  .site-header-contact {
    gap: 8px;
  }

  .site-header-top-links a,
  .site-header-contact a {
    font-size: 11px;
  }

  .header-section .logo img {
    width: min(155px, 58vw);
  }

  .header-section .menu-toggle {
    width: 46px;
    height: 46px;
    margin-right: 10px;
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .site-header-top-links span[aria-disabled="true"],
  .site-header-contact a[href="contact.html"] {
    display: none;
  }

  .header-section .main-nav,
  .header-section .main-nav.open,
  .header-section .main-nav.active {
    width: 100%;
    max-width: 100%;
    box-shadow: 0 10px 24px rgba(12, 19, 79, 0.18);
  }
}

@media (max-width: 360px) {
  .site-header-contact a[href^="mailto"] {
    font-size: 0;
  }
}

body.mobile-navigation-open {
  overflow: hidden;
}

body.mobile-navigation-open .sticky-site-image-icons,
body.mobile-navigation-open .tpipay-wa-widget {
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-site-image-tooltip {
    transition: none;
  }

  .header-section .nav-chevron,
  .header-section .nav-dropdown,
  .header-section .main-nav,
  .header-section .header-action {
    transition: none;
  }
}
