/* Navbar Styles */
.navbar {
    padding: 1rem 1.5rem;
    background-color: #f6f9fc; /* Matches the page background for a seamless look */
}

.navbar-light .navbar-nav .nav-link {
    color: #6a56a6;
    font-weight: 400;
    font-size: 16px;
    text-transform: capitalize;
    padding: 0.5rem 1.5rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover and Active Effect */
.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #8f1bdc;
    transition: width 0.3s ease, left 0.3s ease;
    opacity: 0;
    transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link:focus::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 60%;
    opacity: 1;
}

/* Active Link - Text Color Change */
.navbar-light .navbar-nav .nav-link.active {
    color: #8f1bdc;
}

/* Sticky Navbar Styles */
.navbar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays above other content */
    background-color: #f6f9fc; /* Maintain the same background color */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Add some shadow to distinguish it from the content */
    transition: all 0.3s ease;
}

/* Adjust the top padding of the body when the navbar becomes sticky */
body.sticky-nav-active {
    padding-top: 70px; /* Adjust based on the height of your navbar */
}

/* Dropdown Link Specifics */
.navbar-light .navbar-nav .nav-item.dropdown .nav-link::after {
    width: 0;
    opacity: 0;
    height: 2px; /* Ensure the line under dropdown nav link is 2px */
}

/* Dropdown Link Hover Effect */
.navbar-light .navbar-nav .dropdown-item {
    position: relative;
    padding-left: 1.5rem; /* Adjust padding to accommodate the line */
    transition: 0.3s ease, padding-left 0.3s ease;
}

.navbar-light .navbar-nav .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px; /* This is the small line to the left */
    background-color: #8f1bdc;
    transition: opacity 0.3s ease, width 0.3s ease;
    opacity: 0;
}

/* Hover and Focus Effect */
.navbar-light .navbar-nav .dropdown-item:hover::before,
.navbar-light .navbar-nav .dropdown-item:focus::before {
    opacity: 1;
    width: 7px; /* Ensures the line is visible on hover */
}

/* Active State for Dropdown Items */
.navbar-light .navbar-nav .dropdown-item.active::before {
    opacity: 1;
    width: 7px; /* Keep the line visible for the active state */
}

/* Brand Image */
.navbar-brand img {
    max-width: 120px; /* Increased size */
    height: auto;
}

.navbar-light .navbar-toggler {
    border-color: transparent; /* Makes the border of the toggler transparent */
    background-color: transparent; /* Makes the background of the toggler transparent */
}

.navbar-light .navbar-toggler-icon {
    background-color: transparent; /* Transparent background for the icon */
}

/* Dropdown Menu */
.navbar-light .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    background-color: #f6f9fc;
    border: none;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-menu .dropdown-item {
    color: #6a56a6;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.dropdown-menu .dropdown-item:hover {
    color: #8f1bdc;
    background-color: #f0f8ff; /* Light background on hover */
}