:root {
  --border: #d1d5db;
  --text: #222;
  --bg: #fff;
  --radius: 10px;
}

.navbar-container {
  width: 100%;
  background: var(--color-primitive-surface-surface, #FEFEFC);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: inline-block;
  align-items: center;
  text-decoration: none;
  /* color: var(--text); */
  font-size: 1.5rem;
  font-weight: 600;
  margin-left: 0px;
}

.logo-icon {
  width: 170px;
  max-width: none;
  height: 36px;
}

/* Hamburger always visible on mobile, hidden on desktop */
.hamburger {
  display: none !important;
}
.navbar-left{
  width: auto;
}
.navbar-actions{
  width: auto;
}

.navbar-left .SignUp_btn {
  display: none !important;
}

.navbar-center {
  padding: 0px 52px;
  flex: 1;
}


.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

.SignUp_btn {
  display: block !important;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.navbar-links li {
  position: relative;
  flex: 1;
  /* min-width: 120px; */
  /* text-align: center; */
}

.navbar-links a {
  white-space: nowrap;
  display: block;
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 8px;
  transition: color 0.2s;
  color: var(--color-primitive-surface-on-surface, #181611);
  font-size: var(--typography-font-size-label-sm, 16px);
  font-weight: var(--typography-font-weight-label, 500);
  line-height: var(--typography-line-height-label-sm, 24px);
  /* 150% */


}

/* .navbar-links a:hover,
.navbar-links .dropdown-toggle:focus {
  color: var(--primary);
} */

.dropdown:focus-within .dropdown-menu {
  display: block;
}

/* .dropdown-toggle::after {
  content: "▼";
  font-size: 0.7em;
  margin-left: 0.3em;
  vertical-align: middle;
} */

.dropdown-menu {
  display: none;
  position: absolute;
  top: 2.2rem;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  z-index: 100;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1rem;
}

.dropdown-menu a.inner-link {
  padding: 0;
  display: block;
  color: var(--color-primitive-surface-on-surface-variant, #5F5746);
  font-size: var(--typography-font-size-label-md, 20px);
  font-weight: var(--typography-font-weight-label, 500);
  line-height: var(--typography-line-height-label-md, 26px);
}


/* 
.dropdown-menu a:hover {
  background: #f0f4f8;
  color: var(--primary);
} */
.dropdown-menu a:hover {
  background: none;
}

.navbar-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: end;
}

/* .btn-primary {
  background: var(--color-primitive-primary-primary, #2E839C);
  color: #fff;
  border: none;
  padding: 0px 24px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--radius-lg, 12px);
} */

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--color-primitive-primary-primary, #2E839C);
  border-radius: var(--radius);
  padding: 0px var(--radius-2xl, 24px);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--radius-lg, 12px);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}


/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 93%;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg);
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.08);
  z-index: 2000; /* Higher than navbar-container */
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-menu.open {
  transform: translateX(0);
}

.menu-panel {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: var(--bg);
  transition: left 0.3s cubic-bezier(.4, 0, .2, 1), opacity 0.3s;
  display: flex;
  flex-direction: column;
  /* padding: 1.5rem 1.5rem 2rem 1.5rem; */
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  overflow-y: auto;
}

.menu-panel.active {
  left: 0;
  pointer-events: auto;
  opacity: 1;
  z-index: 2;
}

.menu-panel .mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* margin-bottom: 2rem; */
  padding: 20px 24px 20px 16px;
  /* margin-bottom: 4px; */
}

.menu-panel .mobile-menu-header .cc_mobilelogo_image {
  width: auto;
  height: 24px;
}

.menu-panel .mobile-menu-header .close_icon {
  width: 24px;
  height: 24px;
}

.menu-panel .menu-title {
  color: var(--color-primitive-surface-on-surface-variant, #5F5746);
  font-size: var(--typography-font-size-body-md, 18px);
  font-weight: var(--typography-font-weight-body, 300);
  line-height: var(--typography-line-height-body-md, 26px);
  /* 144.444% */
}

.menu-panel .close,
.menu-panel .back {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
}

.menu-panel ul {
  list-style: none;
  padding: 0 12px 8px 12px;
  /* margin: 0 0 2rem 0; */
  flex: 1;
}

.menu-panel ul li {
  font-size: var(--typography-font-size-label-md, 20px);
  color: var(--color-primitive-surface-on-surface, #181611);
  font-weight: var(--typography-font-weight-label, 500);
  line-height: var(--typography-line-height-label-md, 26px);
  margin-bottom: 7px;
  padding: 8px 16px;
}

.menu-panel ul li a {
  text-decoration: none;
  color: var(--color-primitive-surface-on-surface, #181611);
  font-weight: var(--typography-font-weight-label, 500);
  line-height: var(--typography-line-height-label-md, 26px);
}

.menu-link,
.menu-link a,
.menu-link span {
  background: none;
  border: none;
  color: var(--color-primitive-surface-on-surface, #181611);
  font-size: var(--typography-font-size-label-md, 20px);
  text-align: left;
  width: 100%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-primitive-surface-on-surface, #181611);
  font-weight: var(--typography-font-weight-label, 500);
  line-height: var(--typography-line-height-label-md, 26px);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0px 16px 64px 16px;
}

.mobile-actions .btn-text-only,
.mobile-actions .style-outline-state{
width: 100%;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-primitive-surface-scrim, rgba(0, 0, 0, 0.40));
  z-index: 200;
}

.overlay.open {
  display: block;
}

/* Desktop Dropdown Styles */
.desktop-dropdown {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  min-width: 400px;
  z-index: 100;
  padding: 8px 16px;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md, 8px);
  background: var(--color-primitive-surface-surface, #FEFEFC);
  /* elevation 1 */
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.dropdown.open .desktop-dropdown {
  display: block;
}

.dropdown-section {
  padding: 0px 24px;
}

.dropdown-divider {
  /* border-top: 1px solid #e5e5e5; */
  /* margin: 1rem 0; */
  /* margin-bottom: 8px; */
  /* width: 93%; */
  /* margin: 0 auto; */
  width: 100%;
  height: 1px;
  background: #e5e5e5;
}

.accordion-toggle {
  background: none;
  border: none;
  color: var(--color-primitive-surface-on-surface-variant, #5F5746);
  font-size: var(--typography-font-size-label-md, 20px);
  font-weight: var(--typography-font-weight-label, 500);
  line-height: var(--typography-line-height-label-md, 26px);
  /* 130% */
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0px;
  cursor: pointer;
  outline: none;
}

.accordion-chevron {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  position: relative;
  transition: transform 0.2s;
}

.accordion-chevron::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid #6b6b6b;
  border-bottom: 2px solid #6b6b6b;
  transform: rotate(45deg);
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -5px;
}

.has-accordion.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding-left: 0;
  margin: 0 0 0.5rem 0;
  list-style: none;
}

.has-accordion.open .accordion-content {
  display: block;
  padding-top: 3px;
}

.accordion-content li a {
  display: block;
  padding: 14px 26px 14px 24px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
  color: var(--color-primitive-surface-on-surface-variant, #5F5746);
  font-size: var(--typography-font-size-label-md, 20px);
  font-weight: var(--typography-font-weight-label, 500);
  line-height: var(--typography-line-height-label-md, 26px);
}

/* 
.accordion-content li a:hover {
  background: #f5f5f5;
} */

.desktop-dropdown .accordion-content .has-accordion>.accordion-toggle {
  font-size: 1rem;
  padding-left: 1.5rem;
}

.desktop-dropdown .accordion-content .accordion-content {
  padding-left: 1.5rem;
}

.chevron-icon {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  vertical-align: middle;
  transition: transform 0.2s;
  display: inline-block;
  transform: rotate(180deg);
}

.dropdown.open>.dropdown-toggle .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-toggle {
  transition: background 0.2s, color 0.2s;
  border-radius: 0px;
  text-align: center;
}

.dropdown-toggle.active {
  background: var(--color-alias-state-layers-on-light-hover, rgba(46, 131, 156, 0.08));

  /* color: var(--primary, #2e8cae); */
  /* border-radius: var(--radius, 10px); */
}

.has-accordion.open .accordion-toggle .chevron-icon {
  transform: rotate(360deg);
}

/* Mobile Styles */
@media (max-width: 998px) {

  .navbar-links,
  .navbar-actions {
    display: none;
  }

  /* Accordion styles for mobile menu */
  .has-submenu>.submenu-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    cursor: pointer;
  }

  .has-submenu .chevron {
    transition: transform 0.2s;
  }

  .has-submenu.open .chevron {
    transform: rotate(90deg);
  }

  .submenu {
    display: none;
    padding-left: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-left: 2px solid #eee;
  }

  .has-submenu.open .submenu {
    display: block;
  }

  .submenu li {
    margin-bottom: 1rem;
  }

  .submenu-inner {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid #eee;
  }

  .submenu-chevron {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    background: none;
    position: relative;
  }

  .submenu-chevron::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #6b6b6b;
    border-bottom: 2px solid #6b6b6b;
    transform: rotate(-45deg);
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -5px;
  }
}



@media (max-width: 998px) {
  .hamburger {
    display: inline-block !important;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 300;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    /* padding: 0.5rem; */
  }

  .navbar-left .SignUp_btn {
    display: block !important;
    /* margin-left: auto; */
    margin-left: auto;
  }
}



@media screen and (max-width: 998px) {
  .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: 30px;
  }

  .navbar-left {
    display: flex;
    /* align-items: center; */
    width: 100%;
    /* justify-content: space-between; */

  }

  .hamburger {
    position: static;
  }

  .logo-icon {
    /* height: 74px; */
    width: 117px;
  }

  .navbar {
    padding: 16px 12px 16px 20px;
  }

  .navbar-center {
    display: none;
  }
}

/* 
@media (max-width: 1280px) and (min-width: 999px) {
  .navbar-links {
    justify-content: space-between;
    gap: 4px;
  }



  .navbar-links li {
    flex: none;
    min-width: auto;
  }

  .navbar-center {
    padding: 0px;
  }

} */

@media (max-width: 1300px) and (min-width: 999px) {

  .navbar-center {
    padding: 0px 20px;
  }
}





@media (max-width: 1175px) and (min-width: 999px) {

  .navbar-links {
    /* justify-content: space-between; */
    /* gap: 4px; */
    gap: 18px;
    margin: 0 0px 0px 0px;
}
  

  .navbar-links li {
    flex: none;
    min-width: auto;
    /* margin: 0 15px 0px 15px; */
  }

  .navbar-links a{
    padding-left: 2px;
    padding-right: 2px;
    font-size: 14px;
  }
  .navbar-center {
    padding: 0px;
  }
}

/* Add padding to body to prevent content from hiding under navbar */
body {
  padding-top: 72px; /* Adjust this value based on your navbar height */
}

/* Media query for mobile devices */
@media screen and (max-width: 998px) {
  .navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
  }

  /* Add initial padding only for mobile */
/*   body {
    padding-top: 113px; /* Initial padding for mobile */
  } 
 */
  .mobile-menu {
    z-index: 2000; /* Ensure mobile menu appears above navbar */
  }
}

/* Ensure sticky behavior works properly on all devices */
.navbar-container.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  /* animation: slideDown 0.3s ease-out; */
}

/* Remove animation and transition effects */
.navbar-container.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* Smooth slide down animation for sticky navbar */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0.9;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}