header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
}
.acf-block-navigation {
  display: flex;
  justify-content: center;
  background-color: var(--wp--preset--color--dark-bg);
}
/* Base styles */
.nav-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: var(--wp--style--global--wide-size);
  background-color: var(--wp--preset--color--dark-bg);
  color: var(--wp--preset--color--light-bg);
}

/* Logo Section */
.nav-logo {
  flex: 0 0 auto;
  min-width: 20%;
}

.logo-link img {
  max-height: 50px;
  width: auto;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: end;
}

@media (max-width: 1090px) {
  .desktop-nav {
    display: none;
  }
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.primary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.menu-item {
  position: relative;
}

.menu-item a {
  text-decoration: none;
  font-weight: 500;
  color: var(--wp--preset--color--light-bg);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item.main > a {
  font-size: 18px;
  transition: color 0.3s ease;
}

.menu-item.main > a .menu-item-point {
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 8px;
  max-width: 5px;
}

.menu-item.main > a:hover,
.menu-item.main > a.active-page {
  color: var(--wp--preset--color--primary);
}

.menu-item.main > a:hover .menu-item-point,
.menu-item.main > a.active-page .menu-item-point {
  opacity: 1;
}

.menu-item.has-submenu > a .menu-item-arrow {
  width: 16px;
  height: 16px;
  transition: color 0.3s ease;
  color: var(--wp--preset--color--light-bg);
}

.menu-item.has-submenu:hover > a .menu-item-arrow {
  color: var(--wp--preset--color--primary);
}

/* Desktop Submenu */
.submenu-container {
  display: flex;
  position: fixed;
  top: calc(var(--nav-height, 140px) + 120px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--wp--preset--color--light-bg);
  box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  width: var(--wp--style--global--content-size);
  max-width: var(--submenu-width, 100%);
  z-index: 200;
  border-radius: 10px;
}

.admin-bar .submenu-container {
  margin-top:20px;
}

.submenu-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.submenu-grid {
  display: flex;
  gap: 68px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
  width: 100%;
}

.submenu-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0;
  min-width: 0;
  flex: 1;
}

.submenu-item {
  min-height: 0;
  min-width: 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.submenu-item:hover {
  background-color: var(--wp--preset--color--secondary-light);
  cursor: pointer;
}

.secondary-bottom-menu {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.secondary-bottom-menu-search-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 15px;
  border-radius: 10px;
  gap: 1rem;
  background-color: var(--wp--preset--color--primary);
  aspect-ratio: 1/1;
  cursor: pointer;
}

.secondary-bottom-menu-search-link:hover {
  background-color: var(--wp--preset--color--primary-hover);
}

.submenu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.submenu-icon svg {
  width: 25px;
  height: 25px;
  fill: var(--wp--preset--color--primary);
}

.submenu-icon svg * {
  fill: var(--wp--preset--color--primary);
}

.submenu-item-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.submenu-item a {
  text-decoration: none;
  color: var(--wp--preset--color--dark-bg);
  font-weight: 500;
  font-size: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.submenu-item .description {
  color: var(--wp--preset--color--secondary-dark);
  font-size: 14px;
  line-height: 1.4;
}

.other-sub-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

a.other-sub-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: var(--wp--preset--color--dark-bg);
  font-weight: 500;
  padding: 12px 20px;
  background-color: var(--wp--preset--color--secondary-light);
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-direction: row-reverse;
  font-size: 18px;
}

.other-sub-link svg {
  width: 23px;
  height: 32px;
  fill: var(--wp--preset--color--dark-bg);
}

.other-sub-link:hover {
  color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--secondary-light);
}

.other-sub-link:hover svg {
  fill: var(--wp--preset--color--primary);
}

/* Secondary Links */
.nav-secondary {
  display: flex;
  align-items: end;
  flex-direction: column-reverse;
  gap: 1rem;
  margin-left: auto;
  min-width: 20%;
}

.secondary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 15px 20px;
  gap: 20px;
  background-color: var(--wp--preset--color--secondary-dark);
  border-radius: 12px;
}

.secondary-menu-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.secondary-item {
  display: flex;
  align-items: center;
}

.secondary-item a {
  text-decoration: none;
  color: var(--wp--preset--color--light-bg);
  font-weight: 500;
  font-size: 14px;
}

.secondary-item a:hover {
  color: var(--wp--preset--color--primary);
}

/* Social Links */
.nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
}

.social-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.social-item {
  display: flex;
  align-items: center;
}

.social-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--wp--preset--color--light-bg);
}

.social-item a:hover {
  color: var(--wp--preset--color--primary);
}

.social-item svg {
  width: 18px;
  height: 18px;
  display:block;
  fill: currentColor;
}

/* Language Selector */
.language-selector {
  color: var(--wp--preset--color--light-bg);
  font-weight: 500;
  font-size: 18px;
  line-height:18px;
  margin-top:4px;
  margin-left: 1rem;
  text-decoration: none;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--wp--preset--color--dark-bg);
  z-index: 1000;
}

@media (max-width: 1090px) {
  .mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Burger Button */
.nav-burger {
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
}

.nav-burger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--wp--preset--color--light-bg);
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-nav.menu-open .nav-burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav.menu-open .nav-burger span:nth-child(2) {
  opacity: 0;
}

.mobile-nav.menu-open .nav-burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Content */
.mobile-menu {
  position: fixed;
  top: var(--nav-height, 80px);
  left: 0;
  width: 100%;
  height: 0;
  background: var(--wp--preset--color--dark-bg);
  overflow: hidden;
  transition: height 0.3s ease;
  z-index: 999;
}

.mobile-menu-inner {
  padding: 0px 20px 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.mobile-nav.menu-open + .mobile-menu {
  height: calc(100vh - var(--nav-height));
}

.mobile-nav.menu-open .mobile-menu-inner {
  opacity: 1;
}

/* Mobile Menu Items */
.mobile-primary-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-item {
  transform: translateX(-10px);
  opacity: 0;
  animation: slideIn 0.3s ease forwards;
}

.mobile-menu-item:nth-child(n) {
  animation-delay: calc(n * 0.1s);
}

.mobile-menu-item a {
  text-decoration: none;
  color: var(--wp--preset--color--light-bg);
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  padding: 0.8rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-menu-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.6rem;
  width: 0;
  height: 2px;
  background-color: var(--wp--preset--color--primary);
  transition: width 0.3s ease;
}

.mobile-menu-item a:hover::after {
  width: 2rem;
}

.mobile-submenu {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0.8rem 0;
  background: var(--wp--preset--color--secondary-dark);
  border-radius: 12px;
  padding: 0.5rem 1rem;
}

.mobile-submenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-submenu-item a {
  font-size: 14px;
}

.mobile-submenu-item svg {
  width: 20px;
  height: 20px;
  fill: var(--wp--preset--color--light-bg);
}

.mobile-submenu-item.other {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--wp--preset--color--secondary-dark);
}

.mobile-submenu-item.other:hover {
  background-color: var(--wp--preset--color--secondary-dark);
}

.mobile-submenu-item.other a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: var(--wp--preset--color--light-bg);
}

.mobile-submenu-item.other:hover a {
  color: var(--wp--preset--color--primary);
}

.mobile-submenu-item.other svg {
  width: 20px;
  height: 20px;
  fill: var(--wp--preset--color--light-bg);
  transition: fill 0.3s ease;
}

.mobile-submenu-item.other:hover svg {
  fill: var(--wp--preset--color--primary);
}

.mobile-secondary-menu {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-secondary-item a {
  text-decoration: none;
  color: var(--wp--preset--color--light-bg);
  font-weight: 500;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
  background-color: var(--wp--preset--color--secondary-dark);
}

.mobile-secondary-item a:hover {
  color: var(--wp--preset--color--primary);
}

.mobile-social-menu {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-social-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-social-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--wp--preset--color--light-bg);
  transition: color 0.3s ease;
}

.mobile-social-item a:hover {
  color: var(--wp--preset--color--primary);
}

.mobile-social-item svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.mobile-language-selector {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
}

.mobile-language-selector a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--wp--preset--color--light-bg);
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.mobile-language-selector a:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--wp--preset--color--primary);
}

.mobile-search-link {
  margin-top: 1rem;
}

.mobile-search-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--light-bg);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-search-button:hover {
  background-color: var(--wp--preset--color--primary-hover);
}

.mobile-search-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 1700px) {
  .acf-block-navigation {
    padding: 0 20px;
  }
}
