.nav_container {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    top: 0;
    z-index: 999;
    margin-top: 10px;
}

.navbar {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.3rem;
    border-radius: 45px;
    background: var(--clr5);
    justify-content: space-between;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.navbar-nav {
    display: flex;
    width: 90%;
}

.nav-item {
    background-color: var(--clr4);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 25px;
    height: min-content;
    display: flex;
    place-content: center;
    min-width: 12em;
    white-space: nowrap;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar li {
    position: relative;
}

.navbar a {
    color: var(--clrletter);
    padding: 14px 20px;
    text-decoration: none;
    background-color: var(--clr4);
    display: block;
    border-radius: 25px;
}

.navbar .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid var(--clr4);
    background-color: var(--clr5);
    padding: 0.3rem;
    margin-top: 0.3rem;
    z-index: 1000;
    /* Increased z-index */
    border-radius: 25px;
    transition: visibility 0s 0.3s, opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 11rem;
}

.navbar .dropdown-item {
    padding: 12px 16px;
    color: var(--clrletter);
    text-decoration: none;
    display: flex;
    /* Changed to flex */
    align-items: center;
    /* Align items vertically */
}

.navbar .nav-item.dropdown {
    position: relative;
}

.navbar .nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.navbar .nav-item.dropdown:hover .dropdown-menu,
.navbar .dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.dropdown-dot {
    width: 2rem;
    height: auto;
    padding: 0;
    margin-right: 10px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.dropdown-item:hover {
    transform: scale(1.05);
}

.home_icon {
    height: 4rem;
    width: auto;
    padding: 0;
}

.nav-home {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    margin-right: 1rem;
    background-color: var(--clr5);
    height: 100%;
    border-radius: 50%;
    padding: 0.5rem;
    transition: transform 0.3s;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.nav-home:hover {
    transform: scale(1.1);
}

.paper-and-sidenav {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 5rem;
}

.side-nav {
    margin-top: 10rem;
    background: white;
    padding: 1rem;
    border-radius: 25px;
    position: sticky;
    top: 10rem;
    height: min-content;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: left;
    gap: 0.5rem;
    padding-right: 2rem;
    align-self: flex-start;
    margin-right: auto;

}

.side-nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.side-nav-item.active {
    transform: translateX(0.5rem);
    transform: scale(1.1);

    /* Adjust the scale factor as needed */
    font-weight: bold;
    /* Optional: make the active link bold */
}

.sidebar-icon {
    height: 2rem;
    padding: 0;
    opacity: 0.5;

}

.sidebar-link {
    text-decoration: none;
    color: var(--clrletter);
}

h1,
h2,
h3,
h4,
h5 {
    scroll-margin-top: 10rem;
    /* Adjust the value as needed */
}

.menu-item {
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: scale(1.1);
}

.icon {
    transition: transform 0.3s;
}

.nav-item.dropdown:hover .icon {
    transform: rotate(180deg);
}

.nav_container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: scale(0.9);
}

.Integrated .row p {
    font-size: 2rem;
}