/* ============================================
   MAIN NAVBAR STYLES - Logo, Nav Items, Buttons
   ============================================ */

.main-navbar-container {
  width: 100%;
  background-color: #ffffff;
}

.main-navbar-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 6px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}

/* ============================================
   LOGO SECTION
   ============================================ */

.main-navbar-logo-wrapper {
  display: flex;
  align-items: center;
  width: 15%;
  min-width: 150px;
  flex-shrink: 0;
}

.main-navbar-logo-text {
  display: flex;
  align-items: center;
  width: 100%;
}

.main-navbar-logo-text picture,
.main-navbar-logo-text img,
.main-navbar-logo-img {
  width: 130px;
  max-width: 100%;
  height: auto;
  display: block !important;
  object-fit: contain;
  visibility: visible !important;
  opacity: 1 !important;
}

.main-navbar-logo-text picture {
  line-height: 0;
}

/* Safari-specific fixes for SVG images */
@supports (-webkit-appearance: none) {
  .main-navbar-logo-text picture,
  .main-navbar-logo-text img,
  .main-navbar-logo-img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    width: 130px;
    max-width: 100%;
  }
}

/* Safari 14+ specific fix */
@supports (-webkit-appearance: none) and (not (translate: none)) {
  .main-navbar-logo-text picture,
  .main-navbar-logo-text img,
  .main-navbar-logo-img {
    width: 130px;
    max-width: 100%;
  }
}

/* ============================================
   HAMBURGER MENU (Hidden above 1177px)
   ============================================ */

.main-navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  /* z-index: 1001; */
  margin-left: 8px;
}

.main-navbar-hamburger span {
  width: 28px;
  height: 3px;
  background-color: #142a36;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* ============================================
   NAVIGATION ITEMS SECTION
   ============================================ */

.main-navbar-items-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  margin-left: 20px;
}

.main-navbar-item-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  padding: 8px 4px;
}

.main-navbar-item-dropdown:hover .main-navbar-item-text {
  color: #2b8dc9;
}

.main-navbar-item-text {
  color: #9496a1;
  font-size: clamp(0.85rem, 1vw, 0.87rem);
  letter-spacing: 0.1px;
  transition: color 0.2s ease;
  font-family: "Acumin Pro Medium";
}

.main-navbar-dropdown-icon {
  color: #f05346;
  font-size: 10px;
  margin-bottom: 0.3rem;
}

/* Badge with Beta Test */
.main-navbar-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  margin-left: 2rem;
}

.main-navbar-badge {
  font-family: "Acumin Pro Bold";
  background-color: #f04f49;
  color: #ffffff;
  font-size: clamp(0.9rem, 1vw, 0.9rem);
  letter-spacing: 0.5px;
  padding: 0px 13px;
  padding-top: 5px;
  border-radius: 15px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.main-navbar-beta-icon {
  margin-top: -5px;
}

/* ============================================
   BUTTONS SECTION
   ============================================ */

.main-navbar-buttons-wrapper {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  flex-shrink: 0;
}

.quaternary-heading {
  font-size: clamp(0.85rem, 1vw, 0.87rem);
  font-family: "Acumin Pro Bold";
}

.main-navbar-button-secondary {
  background-color: transparent;
  color: #142a36;
  font-size: clamp(0.85rem, 1vw, 0.87rem);
  font-family: "Acumin Pro Bold";
  padding: 10px 24px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.main-navbar-button-secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.main-navbar-button-primary {
  background-color: #286db6;
  color: #ffffff;
  font-size: clamp(0.85rem, 1vw, 0.87rem);
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Acumin Pro Medium";
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(43, 141, 201, 0.2);
}

.main-navbar-button-primary:hover {
  background-color: #2478ad;
  box-shadow: 0 2px 6px rgba(43, 141, 201, 0.3);
}

.main-navbar-button-secondary:active,
.main-navbar-button-primary:active {
  transform: translateY(1px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1480px) {
  .main-navbar-content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-navbar-buttons-wrapper {
    gap: 8px;
  }

  .main-navbar-button-secondary,
  .main-navbar-button-primary {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 1299px) {
  .main-navbar-items-wrapper {
    gap: 10px;
    margin-left: 0px;
  }

  .main-navbar-item-dropdown {
    gap: 2px;
  }

  .main-navbar-content {
    gap: 2px;
  }
}
/* ============================================
   CLOSE BUTTON (appears on sidebar)
   ============================================ */

.main-navbar-items-wrapper .main-navbar-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1002;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  color: #142a36;
  transition: background 0.15s ease, transform 0.12s ease;
}

.main-navbar-items-wrapper .main-navbar-close:hover {
  background: rgba(20, 42, 54, 0.06);
  transform: translateY(-1px);
}

.main-navbar-items-wrapper.open .main-navbar-close {
  color: #111827;
}

/* Show only on mobile (when sidebar is active) */
@media (max-width: 1177px) {
  .main-navbar-items-wrapper .main-navbar-close {
    display: block;
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .main-navbar-items-wrapper .main-navbar-close {
    font-size: 30px;
    top: 10px;
    right: 10px;
  }
}

/* ============================================
   MOBILE MENU (Below 1177px)
   ============================================ */

@media (max-width: 1177px) {
  .main-navbar-content {
    padding: 12px 20px;
    gap: 12px;

    margin: 0 0;
  }

  .main-navbar-logo-wrapper {
    width: auto;
    flex: 0 0 auto;
  }

  .main-navbar-logo-text picture,
  .main-navbar-logo-text img {
    width: 120px;
    height: auto;
    display: block;
  }

  /* Show hamburger menu */
  .main-navbar-hamburger {
    display: flex;
    order: 3;
    margin-left: 0;
  }

  /* Buttons stay visible and order 2 */
  .main-navbar-buttons-wrapper {
    width: auto;
    order: 2;
    gap: 8px;
  }

  .main-navbar-button-secondary,
  .main-navbar-button-primary {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Hide desktop menu by default, show when open */
  .main-navbar-items-wrapper {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    width: 100%;
    height: 80vh;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-left: 0;
    margin-top: 0;
    padding: 24px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    order: 4;
    border-radius: 20px 20px 0 0;
  }

  .main-navbar-items-wrapper.open {
    bottom: 0;
  }

  /* Menu items styling for mobile */
  .main-navbar-item-dropdown {
    padding: 10px 12px;
    padding-left: 12px;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    width: 100%;
    margin-left: 0;
  }

  .main-navbar-item-text {
    font-size: 15px;
    color: #142a36;
    text-align: left;
    display: block;
    flex: 1;
  }

  .main-navbar-item-dropdown .main-navbar-dropdown-icon {
    flex-shrink: 0;
    margin-left: auto;
    margin-bottom: 0;
  }

  .main-navbar-badge-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    padding-left: 12px;
    text-align: left;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
  }

  .main-navbar-badge-wrapper .main-navbar-item-dropdown {
    width: 100%;
    margin-left: 0;
    padding: 0;
    padding-left: 0;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    border-bottom: none;
  }

  .main-navbar-badge {
    font-size: 11px;
    padding: 0px 12px;
    padding-top: 5px;
    margin-left: 0;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .main-navbar-badge-wrapper .main-navbar-item-text {
    text-align: left;
    margin-left: 0;
    display: inline;
    width: auto;
    flex: 1;
  }

  .main-navbar-badge-wrapper .main-navbar-beta-icon {
    margin-left: 0;
    flex-shrink: 0;
  }

  .main-navbar-badge-wrapper .main-navbar-dropdown-icon {
    margin-left: auto;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  /* Backdrop overlay when menu is open */
  .main-navbar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: fadeIn 1s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  .main-mob-navbar-small {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .main-navbar-content {
    padding: 10px 16px;
  }

  .main-navbar-logo-text picture,
  .main-navbar-logo-text img {
    width: 100px;
    display: block;
  }

  .main-navbar-items-wrapper {
    width: 280px;
  }

  .main-navbar-button-secondary,
  .main-navbar-button-primary {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .main-navbar-items-wrapper {
    width: 100%;
    bottom: -100%;
  }

  .main-navbar-items-wrapper.open {
    bottom: 0;
  }

  /* .main-navbar-button-secondary {
    display: none;
  } */

  .main-navbar-button-primary {
    padding: 8px 14px;
    font-size: 12px;
  }
  nav {
    padding: 10px 0px;
  }
}
.ActionButtons-Hamburger {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 379px) {
  .main-navbar-button-primary {
    padding: 5px 6px;
  }
  .main-navbar-button-secondary,
  .main-navbar-button-primary {
    padding: 5px 6px;
  }
  .main-navbar-logo-text picture,
  .main-navbar-logo-text img {
    width: 85px;
    display: block;
  }
  .main-navbar-buttons-wrapper {
    gap: 3px;
  }
  .main-navbar-content {
    padding: 10px 10px;
    gap: 0px;
  }
}
/* Hide on desktop, show on mobile (below 1177px) */
.main-mob-navbar-small {
  display: none;
}
