.main-header {
  background-color: #fff;
  padding: 0.65rem 1.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 111;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
  background-color: #00423d;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

header.scrolled .logo a img:nth-child(1) {
  display: none;
}

.logo a img:nth-child(2) {
  display: none;
}

header.scrolled .logo a img:nth-child(2) {
  display: block;
}

header.scrolled .get-started {
  background-color: #ffffff;
  color: #00423d;
}

header.scrolled nav ul li a,
header.scrolled nav ul li {
  color: #fff;
  transition: color 0.3s ease;
}

.tax-services-mega a {
  padding: 0;
}

header.scrolled nav ul li .tax-services-mega a {
  color: #00423d;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav ul li a,
nav ul li {
  color: #000;
  text-decoration: none;
  padding: 0rem 0.9375rem;
  transition: color 0.3s ease;
}

nav ul li {
  cursor: pointer;
}

nav ul li a:hover {
  color: #00423d;
}

.user-actions {
  display: flex;
  align-items: center;
}

.client-login,
.get-started {
  color: #00423d;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  transition: background-color 0.3s ease;
}

.get-started {
  background-color: #00423d;
  color: #fff;
  border-radius: 0.25rem;
  margin-left: 0.625rem;
}

.header-container {
  max-width: 70rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.header-container ul a {
  display: flex;
}

.logo nav ul {
  margin-top: 0.4375rem;
}

/* megamenue */
.mega-menu {
  display: flex;
  max-width: 75rem;
  margin: 1.5rem auto 0;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.all-sab-menue-header {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  /* Smooth transition for opacity */
}

.sub-menue:hover .all-sab-menue-header {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

/* Roles Section */
.menu-roles {
  width: 25%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  border-right: 0.0625rem solid #00423d;
}

.menu-role {
  padding: 1.25rem;
  border-bottom: 0.0625rem solid #00423d;
  cursor: pointer;
  transition: background 0.3s;
}

.menu-role h3 {
  font-size: 1.125rem;
  color: #00423d;
  padding-bottom: 0.1875rem;
  font-weight: 600;
}

.menu-role p {
  font-size: 0.875rem;
  color: #777;
}

.menu-role:hover,
.menu-role.active {
  background-color: rgb(0 66 61 / 10%);
  color: #00423d;
}

/* Features Section */
.menu-features {
  width: 45%;
  padding: 0.88125rem 0.55rem;
  display: flex;
  flex-direction: column;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  padding: 0.625rem;
  margin-bottom: 0.625rem;
  transition: all 0.3s ease-in-out;
  flex-wrap: wrap;
  position: relative;
}

.menu-features .feature:nth-child(3)::after {
  background-image: url(/staticfiles/images/future-tax-paling-image-mega.svg);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 1.6875rem;
  content: "";
  background-size: cover;
  background-repeat: no-repeat;
  height: 15.75rem;
  border-radius: 0.625rem;
}

.tax-services-mega {
  width: 48%;
  display: flex;
  align-items: center;
}

.feature.hidden {
  display: none;
}

.feature img {
  width: 1.875rem;
  height: 1.875rem;
  margin-right: 0.625rem;
}

.feature a {
  font-size: 1rem;
  font-weight: 400;
}

/* Details Section */
.menu-details {
  width: 30%;
  padding: 1.875rem;
  border-left: 0.0625rem solid #ddd;
}

.menu-details h2 {
  font-size: 1.25rem;
  color: #00423d;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.menu-details p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.3;
}

.header-container .menu-link {
  display: inline-block;
  margin-top: 0.9375rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s;
  color: #ffffff;
  background-color: #00423d;
  padding: 0.5rem 1.25rem;
  border-radius: 0.3125rem;
}

.menu-roles .menu-role:last-child {
  border-bottom: none;
}

.mega-menu-business img {
  width: 100%;
  height: auto;
}

.all-mega-menue {
  position: absolute;
  left: 0;
  right: 0;
  justify-content: center;
}

.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1100;
}

.sub-menue span {
  margin-top: 1rem;
}

.sub-menue span img {
  width: 15px;
  height: 15px;
  transform: translate(-1px, 3px);
}

.main-header.scrolled .sub-menue span img {
  filter: invert(100%) brightness(1000%);
}

.individuals-link {
  width: 100%;
}

.individuals-link h4 a {
  padding-left: 0;
  font-weight: 700;
  color: #00423d;
  margin-bottom: 0.2rem;
  text-decoration: underline;
}

.main-header.scrolled .individuals-link h4 a {
  color: #00423d;
}

/* Mobile Navigation Styles */