
/* 1. Parent Item Styling */
.new-fonto-new.dropdown {
  position: relative;
  list-style: none;
  display: inline-block;
  padding-bottom: 10px; 
  margin-bottom: -10px;
}

/* 2. Main "Services" Link */
.new-do-do-mov {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

/* 3. The Dropdown Container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: #ffffff;
  border-radius: 4px;
  padding: 0; /* Changed to 0 to make lines reach the edges */
  margin: 0;
  list-style: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 3px solid #0097B2;
  
  /* Hidden State */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  overflow: hidden; /* Keeps corner radius clean */
}

/* 4. Hover Interactions */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .new-do-do-mov {
  color: #0097B2;
}

/* 5. Dropdown List Items & Lines */
.dropdown-menu li {
  /* This creates the separator line between items */
  border-bottom: 1px solid #eeeeee; 
}

.dropdown-menu li:last-child {
  border-bottom: none; /* Removes the line from the last item */
}

/* 6. Dropdown Links - No "Shaking" Move */
.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.2s ease;
  border-left: 0px solid #0097B2; /* Prep for hover border */
}

/* Stable Hover Effect */
.dropdown-menu li a:hover {
  background-color: #f9f9f9;
  color: #0097B2;
  /* Instead of moving text, we just add a thick left border */
  box-shadow: inset 4px 0 0 0 #0097B2; 
}

/* 7. Arrow Styling */
.arrow {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* Default (Desktop) - keep dropdown behavior */
.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
}

/* Show on hover (desktop) */
.dropdown:hover .dropdown-menu {
  display: block;
}


@media (max-width: 991px) {
  /* 1. Force hide by default on mobile */
  .dropdown-menu {
    display: none !important; 
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    padding-left: 20px !important;
    width: 100% !important;
    border: none !important;
  }

  /* 2. Show ONLY when the 'open' class is present */
  .dropdown.open > .dropdown-menu {
    display: block !important;
  }

  /* 3. Keep the Services link from jumping */
  .new-do-do-mov {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* Removes the grey box on click */
  }
}