@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

/* Smooth transitions for dropdown hover */
.dropdown-menu {
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

/* Ensure dropdowns stay open when hovering over the menu itself - AUTOMATIZATION*/
/*.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}*/
/*END AUTOMATIZATION. IT CAN WORK WITHOUT THIS THOUGH*/

/* Add spacing between dropdown items */
.dropdown-menu .dropdown-item {
    padding: 8px 16px; /* Increase vertical padding (top/bottom) */
    margin-bottom: 2px; /* Add small space between items */
    border-radius: 4px; /* Optional: rounded corners for better look */
    transition: background-color 0.2s ease;
}

/* Remove margin from the last item */
.dropdown-menu .dropdown-item:last-child {
    margin-bottom: 0;
}

/* Improve hover effect -NO NEED*/
/*.dropdown-menu .dropdown-item:hover {
    /*background-color: lightblue;*/
   /* color: inherit;/*aqua;
    transform: translateX(2px); /* Subtle slide effect on hover */
/*}*/

/*DROPDOWN SUBMENU*/

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0;
  display: block; /*This prevented the submenu to appear before*/
  position: absolute;
  white-space: nowrap;
  min-width: auto;
  width: max-content;
  z-index: 1050;
}

.dropdown-submenu.show > .dropdown-menu {
  display: block;
}

/*END DROPDOWN SUBMENU*/

/* Make language dropdown smaller */
#languageDropdown + .dropdown-menu {
    min-width: 150px; /* Reduce minimum width */
    /*width: 100px;*/
    padding: 4px 0; /* Reduce top/bottom padding */
}

/* Adjust language dropdown items */
#languageDropdown + .dropdown-menu .dropdown-item {
    padding: 6px 12px; /* Smaller padding than navigation dropdowns */
    font-size: 0.9rem; /* Slightly smaller font */
}
@media (min-width: 1200px) {
  /*768*/
  .dropdown-submenu > .dropdown-menu {
  /*min-width: 200px;*/
  /*max-width: 220px;*/
  width: 240px;
  /*max-width: 300px;*/
  white-space: nowrap;
  padding-left: 0;
  }
}
@media (max-width: 1200px) {
  li.half-width-1200 {
    width: 60%;
    /*padding-left: 1rem;*/
    
  }

  li.half-width-1200 .dropdown-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    
    /*text-align: center; /* Optional */
  }

  /*768*/
  .dropdown-submenu > .dropdown-menu {
  /*min-width: 200px;*/
  width: 390px;
  /*max-width: 220px;*/
  /*width: max-content;*/
  white-space: nowrap;
  padding-left: 0;
  }
}

@media (max-width: 855px) {
 /* Language dropdown stays small in this breakpoint too */
    #languageDropdown + .dropdown-menu {
        
        min-width: 140px ;
        max-width: 160px ;
        right: auto;             /* Align dropdown to the right edge of button */
        left: auto;           /* Override default left positioning */
        /*transform: none ;      /* Remove any transform positioning */
    }

  .dropdown-submenu > .dropdown-menu {
  min-width: 150px;
  /*width: 200px;*/
  max-width: 220px;
  /*width: max-content;*/
  white-space: nowrap;
  padding-left: 0;
}
}

@media (max-width: 576px) {
  .navbar .dropdown-menu {
    width: 100%;

    max-width: calc(100vw - 30px); /* Leave some margin on small screens */
    /*left: 0 ;
    transform: none ;*/
  }

  /* Language dropdown stays small in this breakpoint too */
    #languageDropdown + .dropdown-menu {
        min-width: 60px ;
        max-width: 60px ;
        /*width: 200px;*/
        right: auto;             /* Align dropdown to the right edge of button */
        left: auto;           /* Override default left positioning */
        /*transform: none ;      /* Remove any transform positioning */
    }

  li.half-width-1200 {
    width: 100%;
    /*padding-left: 1rem;*/
    
  }

  /* ME TRYING TO IMPLEMENT THE WHOLE HIGHTLIGHT FOR THESE SCREENS, 
  INSTEAD OF ONLY COVERING THE WORDS, BUT THE WHOLE HORIZONTAL SPACE. FAILED!*/
  /*.dropdown-menu .dropdown-item:hover {
    width: 100%;
  }*/

     /* 🔻 HIDE right arrow for dropdown toggles */
  .navbar .dropdown-toggle::after {
    display: none ;
  }

  /*  DISABLE submenu items (if you had nested dropdowns) */
  .navbar .dropdown-menu .dropdown-menu {
    display: none ;
    pointer-events: none;
  }

  /*  Optionally disable submenu toggles completely */
  .navbar .dropdown-submenu > .dropdown-toggle {
    pointer-events: none;
    cursor: default;
  }
}



