::-webkit-scrollbar {
    display: none;
}

/* Horizontal navbar at the top */
.sidebar {
    width: 100%;
    height: 80px;
    background-color: #000b1b;
    display: flex;
    align-items: center;
    padding: 0 2vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    font-size: 1.2rem;
    box-shadow: 0 8px 10px rgba(0, 11, 27, 0.5);
}

/* Navbar logo */
.logo {
    display: block;
    height: 70px;
    margin-right: auto;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

/* Navbar links */
.nav {
    display: flex;
    flex-direction: row;
    gap: .2vw;
    margin-left: auto;
}

.nav-item {
    margin: 0;
}

/* Main nav link styling */
.nav-link {
    color: white;
    transition: color 0.3s, transform 0.3s ease, background-color 0.3s ease;
    padding: 10px 15px;
    font-size: 1.1rem;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

/* Link hover effects */
.nav-link:hover {
    color: var(--color10);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Underline animation for nav links */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 50%;
    background-color: var(--color10);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 90%;
    left: 5%;
}

/* Dropdown container */
.nav-item.dropdown {
    position: relative;
}

/* Dropdown menu styling */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000b1b;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* Display dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
    display: block;
}

/* Dropdown menu items */
.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Hover effect for dropdown items */
.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color10);
}

/* Site header */
.site-header {
    display: none;
}

/* Footer adjustments */
.site-footer {
    background-color: var(--bs-gray-900);
    color: white;
    width: 100%;
    padding: 25px;
    position: relative;
    bottom: 0;
    left: 0;
    font-size: 1rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.footer-column {
    margin-left: 0;
    flex: 1;
    padding: 0;
    min-width: 100px;
    text-align: center;
}

.footer-logo {
    position: absolute;
    bottom: 10px;
    right: 20px;
}

.footer-logo img {
    max-width: 10vw;
    height: auto;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-column h5 {
    font-size: 1rem;
}

.footer-column li {
    font-size: 0.9rem;
}

@media (max-width: 1568px) {
    .nav-link {
        font-size: 0.8rem;
        padding: 4px 6px;
        text-align: center;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        padding: 5px 15px;
        flex-direction: column;
        align-items: center;
    }

    .logo {
        height: 40px;
        margin-bottom: 5px;
    }

    /* Navbar links in row with smaller gap */
    .nav {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 100%;
    }

    .nav-item {
        flex: 1;
        margin: 0;
    }

    .nav-link {
        font-size: 0.6rem;
        padding: 2px 4px;
        text-align: center;
    }

    /* Adjust footer layout for mobile */
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-column {
        flex: 1;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    .footer-logo img {
        max-width: 100px;
        bottom: 5px;
    }
}