html {
  scroll-behavior: smooth;
}

.header-mind-care {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 1.625rem 0;
}

.header-mind-care .logo {
  height: 3.825rem;
}

.header-links .a {
  text-decoration: none;
}

.services_menu {
  display: flex;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1.6875rem;
}

.header-links li {
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.375rem;
}

.header-links li img {
  height: 1rem;
  width: 1rem;
}

.call-btn-header {
  background-color: #ae64bb;
  border-radius: 0.375rem;
  padding: 0.625rem 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: white !important;
  font-weight: 700 !important;
  font-size: 1rem;
}

.header-links li a {
  color: rgba(0, 74, 97, 0.7);
  font-weight: 500;
  font-size: 1rem;
}

.header-links li a:hover {
  color: #004a61;
  font-weight: 500;
}

.header-links li span:hover {
  color: #004a61;
  font-weight: 500;
}

.header-links li img {
  transition: all 0.3s ease;
}

.header-links li:hover .header-arrow-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 150%;
  right: -222.4%;
  background-color: white;
  border-radius: 0.375rem;
  padding: 1.6875rem 8.15rem;
  min-width: 78.75rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.625rem);
  transition: all 0.3s ease;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.625rem;
  left: 0;
  right: 0;
  height: 0.625rem;
  background: transparent;
}

.dropdown-menu-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-top: 0.125rem solid rgba(0, 0, 0, 0.1);
  padding-top: 2.75rem;
}

.left-dropdown-menu {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
}

.img-dropdown-menu {
  display: flex;
  flex-direction: column;
  max-width: 17.6875rem;
  gap: 1.875rem;
}

.img-dropdown-menu img {
  height: 9.25rem !important;
  width: 17.5rem !important;
  border-radius: 0.375rem;
}

.header-dropdown {
  color: rgba(0, 74, 97, 0.7);
  padding: 0.625rem 0;
}

.header-dropdown a {
  cursor: pointer;
}

.header-dropdown:hover {
  color: #004a61;
  font-weight: 500;
}

.header-dropdown span {
  cursor: pointer;
  font-weight: 500;
  color: rgba(0, 74, 97, 0.7);
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.header-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.right-dropdown-menu {
  display: flex;
  flex-direction: row;
  gap: 7.5rem;
}

.para-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.dropdown-menu h3 {
  color: #004a61;
  font-size: 1.25rem;
  font-weight: 500;
}

.para-dropdown-menu p {
  color: #004a61;
  font-size: 1rem;
  font-weight: 400;
}

.services-list {
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.services-list ul li::before {
  content: "•";
  color: rgba(0, 74, 97, 0.7);
  display: inline-block;
  width: 0.7em;
  margin-left: -1em;
}

.services-list ul li {
  margin-bottom: 1.0625rem;
  color: rgba(0, 74, 97, 0.7);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}

.services-list ul li:hover {
  color: #004a61;
  font-weight: 500;
}

.services-list ul {
  padding-left: 1.4375rem;
}

/* Admin Dropdown Styles */
.admin_buttons {
  position: relative;
}

.admin_buttons .billing-freedom-menue {
  background-color: #ae64bb;
  color: white !important;
  padding: 0.625rem 0.9375rem;
  border-radius: 0.375rem;
  font-weight: 700 !important;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.3s ease;
}

.admin_buttons .billing-freedom-menue:hover {
  background-color: #9a4fa8;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(174, 100, 187, 0.3);
}

.admin_buttons .sub-menu {
  position: absolute;
  top: 100%;
  right: -3.2rem;
  background-color: white;
  border-radius: 0.375rem;
  padding: 0.75rem 0;
  min-width: unset;
  width: 11.6rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.625rem);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
}

/* Add invisible bridge to prevent dropdown from disappearing */
.admin_buttons .sub-menu::after {
  content: "";
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
  background: transparent;
}

.admin_buttons .sub-menu::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  right: 1.5rem;
  width: 0;
  height: 0;
  border-left: 0.5rem solid transparent;
  border-right: 0.5rem solid transparent;
  border-bottom: 0.5rem solid white;
  z-index: 1001;
}
.admin_buttons .sub-menu::before {
  content: none;
}
.admin_buttons:hover .sub-menu,
.admin_buttons .sub-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.admin_buttons .sub-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin_buttons .sub-menu li a {
  display: block;
  padding: 0.875rem 1.5rem;
  color: rgba(0, 74, 97, 0.7) !important;
  text-decoration: none;
  font-weight: 400;
  font-size: 1;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  line-height: 1.4;
}

.admin_buttons .sub-menu li a:hover {
  color: #004a61 !important;
}

/* Ensure dropdown stays open when hovering over menu items */
.admin_buttons .sub-menu:hover {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Simple Dropdown Styles for Resources and Company */
.simple-dropdown-menu {
  position: absolute;
  top: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(0.625rem);
  background-color: white;
  border-radius: 0.375rem;
  padding: 2rem 1.5rem;
  min-width: unset;
  width: 15rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.company-dropdown-menu {
  width: 7rem;
}
.simple-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.625rem;
  left: 0;
  right: 0;
  height: 0.625rem;
  background: transparent;
}

.simple-dropdown-content {
  border-top: none !important;
  padding-top: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.simple-dropdown-menu .services-list {
  padding-top: 0;
  gap: 0.75rem;
}
.simple-dropdown-content .services-list ul li{
  margin-bottom: 1.5rem;
  width: 100%;
}
.simple-dropdown-content .services-list ul li a{
  width: 100%;
}
.simple-dropdown-content .services-list ul li:last-child {
  margin-bottom: unset;
}
.simple-dropdown-menu .services-list ul {
  padding-left: 0;
}
/* 
.simple-dropdown-menu .services-list ul li {
  margin-bottom: 0.5rem;
  list-style: none;
  padding: 0;
} */

.simple-dropdown-menu .services-list ul li::before {
  content: none;
}
/* 
.simple-dropdown-menu .services-list ul li a {
  color: rgba(0, 74, 97, 0.8) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
} */

.simple-dropdown-menu .services-list ul li a:hover {
  color: #004a61 !important;
  font-weight: 600;
}

/* Show dropdown on hover */
.header-dropdown:hover .simple-dropdown-menu,
.simple-dropdown-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Logout item styling in Admin dropdown */
.admin_buttons .sub-menu .logout-item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.admin_buttons .sub-menu .logout-item a {
  color: #ae64bb !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}

.admin_buttons .sub-menu .logout-item a:hover {
  color: #9a4fa8 !important;
  background-color: rgba(174, 100, 187, 0.1);
  border-radius: 0.25rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-left: 0;
  margin-right: 0;
}
