/***** Custom CSS for Mega Menu Fixes *****/

/* Adjust padding and spacing for the mega menu */
.mega-menu ul li {
    margin-bottom: 10px; /* Space between each list item */
}

/* Increase the padding for the entire mega menu */
.mega-menu {
    padding: 20px;
}

/* Add some padding to each column for better alignment */
.mega-menu .col-md-3 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure text is left-aligned and properly spaced */
.mega-menu ul li a {
    padding: 5px 0;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.mega-menu ul li a:hover {
    color: #0056b3; /* Hover effect for the links */
}

/* Improve heading appearance */
.mega-menu h6 {
    font-size: 16px;
    font-weight: bold;
    color: #004d40;
    margin-bottom: 15px;
}

/*Customize Mega menu*/

.mega-menu .dropdown-item.active, .mega-menu .dropdown-item:active {
    color: inherit;
    text-decoration: none;
    background-color: inherit;
  }

  .mega-menu ul li a:hover {
    color: inherit;
  }

  .mega-menu .dropdown-item:focus, .mega-menu .dropdown-item:hover {
    color: var(--bs-dropdown-link-hover-color);
    background-color: inherit;
  }

/* For larger screens (desktop) - open the menu on hover */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block; /* Show dropdown on hover */
        margin-top: 0;
    }

    .navbar-nav .dropdown-toggle::after {
        transform: rotate(90deg); /* Rotate the arrow icon */
    }
}

/* Ensure dropdown closes properly on smaller screens */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        display: none;
    }

    .navbar-nav .dropdown.show .dropdown-menu {
        display: block;
    }
}


/* Service Menu */


/* Set max height for the mobile submenu and enable scrolling */
.nav-item .sub-menu {
    max-height: 300px; /* Adjust the height as needed */
    overflow-y: auto;  /* Enable vertical scrolling */
}

/* Hide the scrollbar on some browsers for a cleaner look (optional) */
.nav-item .sub-menu::-webkit-scrollbar {
    width: 8px; /* Set scrollbar width */
}

.nav-item .sub-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* Customize scrollbar color */
    border-radius: 10px;
}

.nav-item .sub-menu::-webkit-scrollbar-track {
    background-color: transparent; /* Optional scrollbar track customization */
}


.footer-up{
    padding: 60px 0 !important;
}

.section-padding {
    padding: 80px 0 !important;
}

.service-details {
    padding: 80px 0 60px !important;
}

.page-ul{
    padding: 12px;
    margin-bottom: 15px;
}