/*
Theme Name: dLawyers Child
Template: dlawyers
Version: 1.0.0
*/
* {
  caret-color: transparent;
  user-select: none; /* optional: prevent selecting random text */
}

/* Restore normal caret and selection for real form fields */
input,
textarea,
select {
  caret-color: auto;
  user-select: text;
}

body {
  margin: 0;
  font-family: Inter;
  background-color: white !important;
  /* border: 5px solid limegreen; */
}
label {
  width: 100%;
}

.main-breadcrumb {
  background-color: transparent !important;
}

.desktop-menu {
  display: flex;
  list-style: none;
  gap: 14px;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: #0073aa;
}

.custom-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  height: 80px;
  background: #fff;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
  /* padding: 10px 20px; */
  /* position: relative; */
  margin-top: 0px;
  padding-top: 0px;
  z-index: 100;
  margin-left: 0px; /* not 64px cause we want header 100% width sticky */
  margin-right: 0px; /* not 64px cause we want header 100% width sticky */
}

.header-inner {
  background-color: white;
  width: 100%;
  margin: 0 auto; /* ✅ center the inner content */
  padding: 0 64px; /* ✅ preserve original spacing */
  /* margin-right: auto; */
  /* margin-left: auto; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1510px;
  /* margin: 0 auto; */
  /* width: 100%; */
}
.site-logo {
  flex-shrink: 0;
  margin-right: 20px;
}
.site-logo img {
  width: 128px;
  display: block;
  float: left;
  max-width: 100%;
  height: auto;
}

.menu-main-item {
  height: 80px !important;
}
.desktop-menu-container {
  flex-grow: 1;
}

.desktop-menu li {
  position: relative;
}

.desktop-menu a {
  background-color: white;
  display: block;
  padding: 0px 5px;
  font-weight: 500;
  color: #333;
  font-weight: 400;
  font-size: 14px;
}

.desktop-menu a:hover {
  color: #2c85dd;
  background-color: white;
  /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12); */
}

.desktop-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  /* box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1); */
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 200px;
  max-width: 400px;
  box-shadow: -4px 4px 6px rgba(0, 0, 0, 0.1),
    /* left shadow */ 4px 4px 6px rgba(0, 0, 0, 0.1),
    /* right shadow */ 0px 6px 8px rgba(0, 0, 0, 0.15); /* bottom shadow */

  border-radius: 4px; /* optional, adds a smooth edge */
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
  padding: 10px 0;
  z-index: 1000; /* ensure it's above other elements */
  border: 0px !important;
}

.desktop-menu li:hover > .sub-menu {
  display: block;
}

.desktop-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

.desktop-menu .sub-menu li:hover > .sub-menu {
  display: block;
}

/*
.desktop-menu li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle; 
  border: solid #333;
  border-width: 0 2px 2px 0;
  padding: 2px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.desktop-menu li .sub-menu li.menu-item-has-children > a::after {
  content: "";
  float: right;
  margin-left: 8px;
  margin-top: 6px;
  border: solid #333;
  border-width: 0 2px 2px 0;
  padding: 2px;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}
  */
.custom-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-mobile-menu li {
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
  position: relative;
}

.custom-mobile-menu a {
  display: block;
  font-weight: 500;
  color: #475467;
}

.custom-mobile-menu li.open > .sub-menu {
  display: block;
}

/* 🚫 Lock body scroll when menu is open */
body.mobile-menu-open {
  height: auto;
  /* overflow: hidden; */
}

/* 📱 Slide-in mobile menu */
.custom-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 999;
  transition: left 0.5s ease-in-out;
  overflow-y: auto;
  /*
  border-top: 1px solid #ccc;
  position: fixed;
  top: 0;
  right: -100%;
  left: -100%;
  width: 99%;
  height: auto;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 999;
  overflow-y: auto;
  padding-top: 1px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  transition: left 0.5s ease-in-out;
  */
}

/*
.custom-mobile-menu li.open > a::after {
  transform: rotate(180deg);
}
  */

/* ✅ Submenu styling */
.custom-mobile-menu .sub-menu {
  display: none;
  padding-left: 15px;
  background: white;
  width: 300px !important;
  border: 0px !important;
}

.custom-mobile-menu li.open > .sub-menu {
  display: block;
  border: 0px !important;
}

body.mobile-menu-open .mobile-menu-overlay {
  display: block;
  height: auto;
}

/* 🧭 Slide Menu From the Left */
body.mobile-menu-open .custom-mobile-menu {
  left: 0;
  height: auto;
}

/* ❌ Close button inside mobile menu */
#mobile-menu-close {
  position: absolute;
  top: 20px;
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  right: 20px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  padding: 0px;
  width: 32px;
  height: 32px;
}

/* Optional: animated entry */
.custom-mobile-menu.animate-in {
  animation: slideInLeft 0.3s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*  Fade In the Overlay Too */
.mobile-menu-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  height: auto;
}

/*  additional for dropdown menus and mega-menus  */

/* Top-level menu links */
.desktop-menu > li > a {
  padding: 28px 5px; /* Adjust as needed */
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sub-menu links  - this controls spacing inside each submenu item */
.desktop-menu .sub-menu li > a {
  padding: 5px 20px; /* More left/right space */
  display: block;
  color: #98a2b3;
}

.desktop-menu .sub-menu li > a:hover {
  color: #2c85dd;
}

/* Remove borders from submenu items only */
.custom-mobile-menu .sub-menu li {
  border-bottom: none !important;
  border-top: none !important;
  border: none !important; /* just in case */
  width: 320px;
}
/* -------------------------- 
 ✅ Mega Menu Setup       
 -------------------------- */
.desktop-menu li.mega-menu {
  position: relative;
}

/* Mega menu wrapper */
.desktop-menu li.mega-menu > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-left: 16px;
  padding-right: 16px;
  width: auto !important;
  max-width: 700px;
  background: white;
  /* padding: 20px 30px; */
  box-shadow: -4px 4px 6px rgba(0, 0, 0, 0.1),
    /* left shadow */ 4px 4px 6px rgba(0, 0, 0, 0.1),
    /* right shadow */ 0px 6px 8px rgba(0, 0, 0, 0.15); /* bottom shadow */
  display: none; /* 🔥 THIS LINE is critical */
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  z-index: 999;
  /* padding-top: 10px; */
}

.mega-menu > .sub-menu {
  left: 50%;
  transform: translateX(-25%);
}

/* Show mega menu on hover */
.desktop-menu li.mega-menu:hover > .sub-menu {
  display: grid;
}

/* Column items inside mega menu */
.desktop-menu li.mega-menu > .sub-menu li {
  /* padding: 0px 0; */
  white-space: nowrap;
}

/* Optional: headings inside mega menu */
.desktop-menu li.mega-menu > .sub-menu li.column-heading > a {
  font-weight: bold;
  pointer-events: none;
  color: #333;
}

/* ✅ Hide ALL submenus by default */
.desktop-menu li > .sub-menu {
  display: none;
}

.desktop-menu li:hover > a::after,
.custom-mobile-menu li.open > a::after {
  transform: rotate(45deg);
}

.bul_div_login {
  margin-right: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
}
.bul_btn_login {
  width: 80px;
  height: 32px;
  color: #344054;
  background: white;
  /* margin: 0 auto; */
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  font-family: Inter;
  font-size: 16px;
  font-weight: 600;
  padding: 0px;
}
.bul_btn_login {
  display: flex;
  justify-content: center;
  align-items: center;
}
.bul_btn_register {
  width: 150px;
  height: 40px;
  color: white;
  background: #2d85dc;
  margin: 0 auto;
  border-radius: 8px;
  border: 0px;
  padding: 0px;
  font-size: 14px;
  user-select: none; /* Cannot select text inside */
  caret-color: transparent; /* No blinking caret */
}

.hamburger-btn {
  display: flex;
  flex-direction: column !important;
  justify-content: center;
  align-items: center;
  gap: 5px; /* spacing between lines */
  width: 40px;
  height: 38px;
  background: transparent;
  border: 1px solid #eaecf0;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  z-index: 99;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#mobile_menu_title {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
  margin-bottom: 16px;
  margin-top: 18px;
}

.bul_div_login_desktop {
  position: relative;
  display: inline-block;
}

#bul_btn_login_desktop {
  margin-right: 20px;
  user-select: none; /* Cannot select text inside */
  caret-color: transparent; /* No blinking caret */
}

#bul_btn_login_desktop img {
  border-radius: 50%;
  border: 3px solid #333;
  object-fit: cover;
  width: 36px;
  height: 36px;
}

#bul-vertical-menu {
  position: absolute;
  top: 110%; /* below the circle */
  left: 0;
  background-color: white;
  border: 1px solid #ccc;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 150px;
  display: none; /* hidden by default */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

#bul-vertical-menu li a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
}

#bul-vertical-menu li a:hover {
  background-color: #f2f2f2;
}

@media (min-width: 768px) {
  .hamburger-btn {
    display: none;
  }
  .bul_div_login_mobile_bottom {
    display: none;
  }
}

/**==============================================**/
/**   =========    MOBILE  VIEW  ===========   **/
/* ============================================== */

@media (max-width: 768px) {
  .desktop-menu-container {
    display: none;
  }
  .header-inner {
    padding: 0px;
  }

  .custom-mobile-menu > .mobile-menu > li {
    padding: 10px 16px !important;
    height: auto !important;
    min-height: 40px !important;
  }

  .custom-mobile-menu > .mobile-menu > li > a {
    display: flex !important;
    align-items: center !important;
    min-height: 40px !important;
    height: auto !important;
    line-height: 1.2 !important;
    padding: 0 !important;
  }

  .custom-mobile-menu .chevron-icon {
    width: 16px !important;
    height: 16px !important;
    margin-left: auto !important;
  }

  .custom-mobile-menu li > a:hover,
  .custom-mobile-menu li > a:active {
    color: #2d85dc; /* blue on tap */
  }

  .custom-header {
    display: flex;
    height: 80px;
    background: #fff;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
    /* padding: 10px 20px; */
    position: relative;
    z-index: 100;
    margin-left: 16px;
    margin-right: 16px;
  }

  .bul_div_login_mobile_bottom {
    display: block;
  }

  .mobile-menu-open #mobile-menu {
    display: block;
    height: 100vh !important;
  }

  .bul_div_login_desktop {
    /* position: relative; */
    display: none;
  }
  .bul_div_btn_register {
    display: none;
  }

  .bul_div_login {
    margin-right: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
  }
  .bul_btn_login {
    width: 70px;
    height: 32px;
    color: #344054;
    background: white;
    /* margin: 0 auto; */
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    font-size: 14px;
    font-weight: 400;
    padding: 0px;
  }
  .bul_btn_login {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .bul_btn_register {
    width: 100px;
    height: 38px;
    color: white;
    background: #2d85dc;
    margin: 0 auto;
    border-radius: 8px;
    border: 0px;
    padding: 0px;
    font-size: 14px;
    font-weight: 400;
    margin-left: 0px;
  }

  .hr_bottom_homepage {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }

  #btn_need_help {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    width: 91% !important;
    height: 44px;
    line-height: 2px;
    background-color: white;
    color: #344054;
    margin-left: 16px !important;
    margin-right: 16px !important;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    text-align: center;
  }

  #bul_btn_register_menu_bottom {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    width: 91% !important;
    height: 44px;
    line-height: 2px;
    color: white;
    background: #2d85dc;
    margin-left: 16px !important;
    margin-right: 16px !important;
    margin-bottom: 12px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    text-align: center;
  }

  .bul_btn_login_mobile {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    width: 91% !important;
    height: 44px;
    line-height: 2px;
    background-color: white;
    color: #344054;
    margin-left: 16px !important;
    margin-right: 16px !important;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    text-align: center;
  }

  .bul_btn_login_mobile {
    width: 91% !important;
    height: 44px;
    line-height: 2px;
    background-color: white;
    color: #344054;
    margin-left: 16px !important;
    margin-right: 16px !important;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    text-align: center;
  }

  .hr_mobile_menu {
    margin-left: 16px !important;
    margin-right: 16px !important;
    color: #d0d5dd;
    width: 91%;
  }

  .div_for_lawyers_title {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 500;
    margin-left: 16px;
    line-height: 18px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .div_marketing_for_lawyers {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    margin-left: 16px;
  }
}

/**  ==============================   **/
/**             FOOTER                 **/
@media screen and (min-width: 578px) {
  .footer_mobile {
    display: none;
  }
  .footer_desktop {
    background-color: #fff;
    margin-top: 38px;
    font-family: Inter;
    color: #333;
  }
  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1250px;
    margin: auto;
    padding-bottom: 48px;
  }
  .footer_bottom_line {
    padding-bottom: 24px;
  }

  .footer-column_left {
    flex: 1;
    width: 320px;
    margin-right: 64px;
  }
  .footer-column {
    flex: 1;
    width: 184px;
    margin-right: 32px;
  }
  .footer-column h4 {
    color: #205e9c;
    font-size: 16px;
    margin-bottom: 15px;
  }
  .footer-column ul {
    list-style: none;
    padding: 0;
  }
  .footer-column ul li {
    margin-bottom: 8px;
  }
  .footer-column ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
  }
  .footer-column ul li a:hover {
    color: #2d5ea8;
  }
  .footer-logo {
    width: 150px;
    margin-bottom: 10px;
  }
  .footer-bottom {
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 20px;
    font-size: 14px;
    display: flex;
    justify-content: space-between; /* Pushes items to both ends */
    align-items: center; /* Aligns items vertically */
    width: 1280px;
    margin: 0 auto;
    padding-bottom: 24px;
    padding-top: 24px;
  }
  .social-icons a {
    margin: 0 5px;
    color: #777;
    font-size: 18px;
    transition: color 0.3s;
  }
  .social-icons a:hover {
    color: #2d5ea8;
  }

  .footer_copyright {
    text-align: left;
    font-family: Inter;
    font-size: 16px;
    line-height: 24px;
    font-weight: 300px;
    color: #667085;
  }
  .social-icons {
    display: flex;
    flex-direction: row; /* Ensures they stay in a row */
    justify-content: right; /* Centers icons inside */
    align-items: right; /* Aligns them vertically */
    gap: 24px; /* Adds space between icons */
    flex-wrap: nowrap; /* Prevents wrapping */
  }

  .span_social_footer_mobile {
    display: flex; /* Ensures each span behaves like a flex container */
    align-items: right; /* Centers images inside */
  }

  .footer_txt_under_logo {
    color: #475467;
    font-family: Inter;
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
    width: 320px;
    margin-right: 64px;
  }
  .footer_space_under_logo {
    height: 32px;
  }
  li {
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #475467;
    cursor: pointer;
  }
  .fab {
    font-size: 24px;
    margin-left: 24px;
  }
}

@media screen and (max-width: 578px) {
  .footer_desktop {
    display: none;
  }
  .footer_mobile {
    /* padding-top: 60px !important; */
    margin-top: -10px !important;
    margin-left: 16px !important;
  }
  .footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
  }

  .footer-brand img {
    max-width: 120px;
    /* margin-bottom: 10px; */
  }

  .footer-brand p {
    font-size: 14px;
    color: #5a5a5a;
    max-width: 300px;
  }

  .footer-section {
    width: 100%;
    max-width: 400px;
    text-align: left;
  }

  .footer-toggle {
    width: 100%;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #2c5da2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 10px 0px !important; */
    cursor: pointer;
  }

  .footer-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
  }

  .footer-dropdown li {
    padding: 8px 0;
    margin-left: 16px;
    width: 91%;
  }

  .footer-dropdown li a {
    text-decoration: none;
    color: #5a5a5a;
    font-size: 16px;
  }

  .footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #5a5a5a;
    margin-top: 48px;
    margin-right: 16px;
  }
  .footer_copyright {
    text-align: center;
    margin-bottom: 16px;
  }
  .social-icons {
    margin-top: 10px;
    margin-bottom: 26px;
    text-align: center;
  }
  .div_footer_social_images {
    display: flex;
    justify-content: center; /* Center aligns the whole social-icons container */
  }

  .social-icons {
    display: flex;
    flex-direction: row; /* Ensures they stay in a row */
    justify-content: center; /* Centers icons inside */
    align-items: center; /* Aligns them vertically */
    gap: 10px; /* Adds space between icons */
    flex-wrap: nowrap; /* Prevents wrapping */
  }

  .span_social_footer_mobile {
    display: flex; /* Ensures each span behaves like a flex container */
    align-items: center; /* Centers images inside */
  }

  .footer_txt_under_logo {
    width: 320px;
    color: #475467;
    font-family: Inter;
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
    margin-top: 24px;
    margin-bottom: 32px !important;
  }
  .fab {
    font-size: 20px;
    color: rgb(191, 195, 202);
  }
  .fa_from_right {
    margin-right: 16px;
  }
}

/*   MENU   */
.div_menu_social_images {
  margin-top: 30px;
}
/**   LOGIN CSS image  */
.user-login {
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #2d85dc;
  background-color: white;
  color: #2d85dc;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/**   LOGOUT Image with css */
.user_not_login {
  color: #475467;
  border: 0px;
  cursor: pointer;
  margin-right: 30px;
}
.user_not_login:hover {
  color: #2c85dd;
}

.user-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #000;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.user-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  background: transparent;
  border: 1px solid #000;
  border-radius: 50%;
  position: absolute;
  top: 6px;
}

.user-icon::after {
  content: "";
  width: 20px;
  height: 10px;
  border: 1px solid #000;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  position: absolute;
  bottom: 4px;
}

/* Default: arrow points down */
.chevron-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background: white;
  border: 0;
  transform: rotate(0deg) translateY(2px);
  transition: transform 0.3s ease;
}
li.open > a > .chevron-icon {
  transform: rotate(180deg) translateY(2px);
  transition: transform 0.3s ease;
}

.desktop-menu .sub-menu li.menu-item-has-children > a > .chevron-icon {
  float: right;
  margin-top: 2px;
  transform: rotate(0deg) translateY(2px);
}

/* ✅ Desktop arrow behavior */
.desktop-menu .chevron-icon {
  transform: rotate(0deg) translateY(2px);
  transition: transform 0.3s ease;
}
.desktop-menu li.open > a > .chevron-icon {
  transform: rotate(180deg) translateY(2px);
}

/* Default state — menu closed — arrow should point DOWN */
.custom-mobile-menu .chevron-icon {
  transform: rotate(180deg) translateY(2px);
  transition: transform 0.3s ease;
}

/* When menu is open — arrow should point UP */
.custom-mobile-menu li.open > a > .chevron-icon {
  transform: rotate(0deg) translateY(2px);
  transition: transform 0.3s ease;
}

/* Align menu item text and arrow vertically */
.menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 6px; /* space between text and icon */
}

/* Make sure arrow stays sized and rotated properly */
.menu-item-has-children > a > .chevron-icon {
  width: 16px;
  height: 16px;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Rotate the arrow when parent <li> has class .open */
.menu-item-has-children.open > a > .chevron-icon {
  transform: rotate(180deg);
}

/* Align text and arrow in mega menu top-level items */
.desktop-menu li.mega-menu > a {
  display: flex;
  align-items: center;
  gap: 6px; /* space between text and chevron */
}

/* Make sure the chevron icon behaves the same way */
.desktop-menu li.mega-menu > a > .chevron-icon {
  width: 16px;
  height: 16px;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Rotate when mega menu is open */
.desktop-menu li.mega-menu:hover > a > .chevron-icon {
  transform: rotate(180deg);
}

/* Chevron default (down arrow) */
.desktop-menu > li > a > .chevron-icon {
  width: 16px;
  height: 16px;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Rotate on hover for ALL menu items */
.desktop-menu > li:hover > a > .chevron-icon {
  transform: rotate(180deg);
}

/* postion the arrow on mobile the most right screen */
.custom-mobile-menu li.menu-item-has-children > a {
  position: relative;
  display: flex;
  align-items: center;
  padding-right: 36px; /* Add room for the arrow */
}

.custom-mobile-menu li.menu-item-has-children > a > .chevron-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
  pointer-events: none; /* Prevents arrow from capturing the click */
}

.chevron-right-black {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  float: right;
  margin-left: auto;
  /*
  float: right;
  transform: translateY(2px);
  width: 20px;
  height: 20px;
  */
}
