/* navbar.css */
:root {
  --nav-height: 4.9rem;
}

.spacer {
  height: var(--nav-height);
}

.sathee-logo {
  width: 3.4rem;
  height: auto;
}

.moe-logo {
  width: 6.4rem;
  height: auto;
}

/* Dropdown hover effect for desktop */
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
  }
 
}

/* Mobile styles */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 1px solid rgba(0,0,0,.1);
    box-shadow: 0px 0px 3px silver ;

    /* Transition Effects */
    display: block !important; /* Override Bootstrap's display:none */
    opacity: 0;
    transform: translateY(-10px); /* Small slide down effect */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    pointer-events: none; /* Prevents clicking links when hidden */
    
  }

  /* When the menu is active */
  .navbar-collapse.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .dropdown-menu {
    border: none;
    padding-left: 1rem;
  }
  
  /* .logos-main-sec {
    width: 100%;
  } */
  
  .sathee-logo {
    width: 2.8rem;
  }
  
  .moe-logo {
    width: 5.4rem;
  }
  .navbar-expand-lg div {
    height: auto !important;
    transition: margin 0.3s ease;
  }
  .navbar-expand-lg .md-screen-fl {
    justify-content: center !important;
  }

  .navbar .mainwrap {
    width: inherit;
    justify-content: space-between;
  }
}

.navbar-collapse ul {
  margin-top: auto !important;
}

/* Small screens */
@media (max-width: 576px) {
  :root {
    --nav-height: 3.6rem;
  }
  .mainwrap {
    /* flex-wrap: wrap; */

  }
  .navbar .d-mob-none {
    display: none;
  }

}


/* Custom styles for navbar toggler icon */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: background-image 0.3s ease-in-out;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
}

/* Optional: Remove the default border from toggler button */
.navbar-toggler:focus {
  box-shadow: none !important;
  border: none !important;
}
.navbar-toggler {
  border: none !important;
}

nav.navbar {
  box-shadow: 0px 0px 3px silver ;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    /* line-height: 14px; */
    column-gap: 1rem;
    align-items: center;
  }
  
}


.dropdown-item:focus, .dropdown-item:hover {
color: #000;
background: none !important;
}

@media only screen and (max-width: 1240px) {
  .navbar-expand-lg .navbar-nav {
      justify-content: center !important;
      flex-wrap: wrap !important;
  }
}


/* Hide close icon by default */
.sidebar-ic .close-icon {
  display: none !important;
}

/* When the button is expanded (sidebar open) */
.sidebar-ic[aria-expanded="true"] .menu-icon {
  display: none !important;
}

.sidebar-ic[aria-expanded="true"] .close-icon {
  display: inline-block !important;
  transform: rotate(90deg); /* Optional: slight rotate for effect */
  transition: transform 0.3s ease;
}

/* Ensure the button doesn't jump in size */
.sidebar-ic {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  /* Force the dropdown to display when it has the .show class */
  .navbar-nav .dropdown-menu.show {
    display: block !important; 
    position: static !important; /* Pushes content down instead of floating over it */
    visibility: visible !important;
    opacity: 1 !important;
    float: none;
    width: 100%;
    border: none;
    background: transparent;
    padding-left: 1.5rem; /* Indent sub-items for better visibility */
    box-shadow: none;
  }

  /* Ensure the main navbar container allows vertical expansion */
  .navbar-collapse {
    overflow-y: auto;
    max-height: 80vh; 
  }
}