:root {
  /* Primary Colors */
  --color-white: #ffffff;
  --color-black: #0F172A;
  --color-bg-primary: #F5F9FD;
  --color-text-primary: #027AB5;
  --color-border: #D7DAE2;
}

/* Prevent body scrolling when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

/* Mobile Menu Button (Hamburger) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.mobile-menu-btn_ope-img {
  width: 44px !important;
}

.mobile-menu-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation Menu */
.mobile-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 6rem);
  height: calc(100vh - 1.25rem);
  background-color: transparent;
  z-index: 999;
  overflow: hidden;
  pointer-events: none;
}

.mobile-nav.active {
  pointer-events: auto;
}



.mobile-nav-content {
  position: absolute;
  top: -100vh;
  left: 0;
  width: 100%;
  height: calc(100vh - 1.25rem);
  background-color: var(--color-white);
  transition: top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem 0.5rem 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.active .mobile-nav-content {
  top: 0;
}



/* Mobile Navigation Header */
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mobile-nav-logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-black);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.mobile-nav-close:hover {
  background-color: var(--color-border);
}

.mobile-nav-close img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  padding: 84px 0;
  flex: 1;
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-nav-list li {
  margin: 0;
}

.mobile-nav-list a {
  display: block;
  padding: 16px 24px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background-color 0.2s ease;
  text-align: left;
}

.mobile-nav-list a:hover {
  background-color: var(--color-bg-primary);
}

/* Mobile Navigation Divider */
.mobile-nav-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: 0 24px;
  order: 1.5;
  flex-shrink: 0;
}

/* Mobile Bottom Section */
.mobile-nav-bottom {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  order: 2;
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 2rem;
}

/* Mobile Language Section */
.mobile-language-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  flex-shrink: 0;
  width: 100%;
}

.mobile-language-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-black);
  margin-right: 16px;
  order: 1;
  flex-shrink: 0;
}

/* Mobile Navigation Language*/
.mobile-nav .language-dropdown {
  position: relative;
  flex-shrink: 0;
  order: 2;
}

.mobile-nav .language-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  margin-top: 8px;
}

.mobile-nav .language-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav .language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-nav .language-option:hover {
  background-color: var(--color-bg-primary);
}

.mobile-nav .language-option .flag-icon {
  width: 20px;
  height: 15px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
}

.mobile-nav .language-option .lang-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-black);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mobile-nav .language-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  width: 100%;
  justify-content: space-between;
}

.mobile-nav .language-btn:hover {
  background-color: var(--color-bg-primary);
}

.mobile-nav .language-btn .flag-icon {
  width: 20px;
  height: 15px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
}

.mobile-nav .language-btn .current-lang {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-black);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mobile-nav .language-btn .dropdown-arrow {
  color: var(--color-black);
  transition: transform 0.2s ease;
}

.mobile-nav .language-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Mobile Navigation Downloads */
.mobile-nav-downloads {
  padding: 0 24px 32px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-download-button-wrapper {
  background-color: #000000;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mobile-download-button {
  height: auto;
  display: block;
}

/* Animation for smooth slide-down */
@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
  }
  to {
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(0);
  }
  to {
    transform: translateX(-50%) translateY(-100%);
  }
}

.mobile-nav.slide-down {
  animation: slideDown 0.3s ease forwards;
}

.mobile-nav.slide-up {
  animation: slideUp 0.3s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mobile-nav {
    width: calc(100% - 2rem);
  }
  
  .mobile-nav-content {
    margin-top: 1rem;
  }
  
  .mobile-nav.active .mobile-nav-content {
    top: 0;
  }
}

@media (max-width: 480px) {
  .mobile-nav {
    width: calc(100% - 1rem);
  }
  
  .mobile-nav-content {
    margin-top: 0.5rem;
  }
  
  .mobile-nav.active .mobile-nav-content {
    top: 0;
  }
  
  .mobile-nav-header {
    padding: 16px 20px;
  }
  
  .mobile-nav-menu {
    padding: 40px 0 40px;
  }
  
  .mobile-nav-list a {
    padding: 14px 20px;
    font-size: 22px;
  }
  
  .mobile-nav-bottom {
    width: 100%;
  }
  
  .mobile-language-section {
    padding: 16px 20px;
    width: 100%;
  }
  
  .mobile-nav-downloads {
    padding: 0 20px 24px 20px;
    width: 100%;
  }
  
}

@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav {
    display: none;
  }
  
  .header_buttons-block {
    display: none;
  }
  
  
  .mobile-nav-overlay {
    display: block;
  }
}


/* Hide mobile nav on desktop */
@media (min-width: 1024px) {

  .mobile-menu-btn,
  .mobile-nav,
  .mobile-nav-overlay {
    display: none !important;
  }
  
  /* Show desktop navigation */
  .nav {
    display: flex !important;
  }
  
  .header_buttons-block {
    display: flex !important;
  }
}


