/* =====================================
   Header (lightweight CSS, flex layout)
===================================== */
:root {
  --site-header-height: 80px;
}

.site-header {
  height: var(--site-header-height);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--site-header-height);
  z-index: 50;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  transition: background-color 0.3s ease;
}

/* Prevent fixed navbar from covering top content (hero, first section). */
#app {
  /* padding-top: var(--site-header-height); */
}

.site-nav--mobile-open {
  background: #007bff;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-inner {
  min-height: var(--site-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 96px;
  height: 64px;
  object-fit: contain;
}

.nav-toggle {
  padding: 10px 12px;
  line-height: 0;
  cursor: pointer;
}

.nav-border-open {
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  background-color: #007bff;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  position: relative;
  border: 1px solid #007bff;
  color: #007bff;
}

.nav-border-open::after {
  content: "";
  position: absolute;
  border: 1px solid #93c5fd;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #fff;
  clip-path: inherit;
  z-index: -1;
}

.close-btn {
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  background-color: #fff;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  position: relative;
  border: 1px solid #fff;
  color: #fff;
}

.close-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #007bff;
  clip-path: inherit;
  z-index: -1;
}

.nav-icon {
  width: 28px;
  height: 28px;
}

.site-menu {
  display: none;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  position: relative;
}

.menu-link {
  min-height: var(--site-header-height);
  position: relative;
  border: 0;
  background: transparent;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: #009ae4;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.menu-link:hover {
  color: #009ae4;
  font-weight: 400;
}

.menu-link.is-active,
.menu-link:focus-visible {
  color: #009ae4;
  font-weight: 400;
}

.menu-link:hover::after,
.menu-link.is-active::after,
.menu-link:focus-visible::after {
  transform: scaleX(1);
}

.menu-caret-wrap {
  width: 14px;
  height: 14px;
  border: 1px solid #93c5fd;
  transform: rotate(-45deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-caret {
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
}

.site-submenu {
    position: absolute;
    top: var(--site-header-height);
    left: 0;
    width: 100vw;
    z-index: 40;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    padding: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.36s cubic-bezier(0.16, 1, 0.3, 1), transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.submenu-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.submenu-media {
  position: relative;
}
.site-submenu.hidden {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

.menu-item:hover + .site-submenu.hidden,
.menu-item:focus-within + .site-submenu.hidden,
.site-submenu.hidden:hover,
.site-submenu.hidden:focus-within {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu-title {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 10px 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  background: rgba(37, 99, 235, 0.86);
  transform: translateY(-50%);
}

.submenu-title::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: url("/images/Icon/arrow-up-right.svg") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.submenu-title:hover,
.submenu-title:focus-visible {
  background: rgba(0, 0, 0, 0.24);
}

.submenu-title.is-active {
  background: #2563ebab;
}

.submenu-title:hover::after,
.submenu-title:focus-visible::after {
  transform: translate(3px, -3px);
}

.submenu-image {
  width: 320px;
  height: 176px;
  object-fit: cover;
}

.submenu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
      box-sizing: border-box;
}

.submenu-link {
  width: fit-content;
  height: 48px;
  padding: 12px 20px;
  border: 1px solid #d4d4d4;
  color: #334155;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  min-width: 150px;
}

.submenu-media.is-active {
  background: #2563ebab;
}

.submenu-image.is-active {
  opacity: 0.5;
}

.submenu-link.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.submenu-link.is-active::after {
  opacity: 0;
}

.cta-partner {
  display: none;
  width: 208px;
  height: 56px;
  background: #334155;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  line-height: 56px;
}

.cta-partner:hover {
  background: #0f172a;
}

.mobile-menu {
  background: #334155;
  height: calc(100vh - var(--site-header-height));
  overflow-y: auto;
  padding: 20px 0 32px;
}
.mobile-menu.hidden {
  display: none;
}
.mobile-menu-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

.mobile-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu-item {
  margin-bottom: 14px;
}

.mobile-menu-title {
  margin: 0;
  padding: 10px 0;
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-menu-link {
  display: block;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-service-block {
  margin: 16px 0;
}

.mobile-service-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.mobile-service-title::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: url("/images/Icon/arrow-up-right.svg") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.mobile-service-title:hover,
.mobile-service-title:focus-visible {
  color: #7dd3fc;
}

.mobile-service-title:hover::after,
.mobile-service-title:focus-visible::after {
  transform: translate(3px, -3px);
}

.mobile-service-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 0;
}

.mobile-service-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  text-align: center;
  font-size: 16px;
}

.mobile-service-link:hover,
.mobile-menu-link:hover {
  color: #7dd3fc;
}

.mobile-partner-item {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.mobile-partner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 208px;
  height: 56px;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-menu {
    display: flex;
  }

  .cta-partner {
    display: inline-block;
  }

  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .brand-logo {
    width: 77px;
    height: 51px;
  }

  .site-submenu {
    position: static;
    width: 100%;
  }
}
