/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

/* Add padding to body to prevent content from hiding behind fixed navbar */
body {
    padding-top: 80px; /* Adjust this value based on your navbar height */
}

.navbar-brand {
    color: #333;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

/* Centered Navigation */
.navbar-nav-centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0E1657; /* Default blue */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Individual navbar item colors - both text and underline */
.nav-item:nth-child(1) .nav-link::after { background-color: #999999 } /* Home */
.nav-item:nth-child(1) .nav-link:hover { color: #999999 !important; }

.nav-item:nth-child(2) .nav-link::after { background-color: #2B7401; } /* About */
.nav-item:nth-child(2) .nav-link:hover { color: #2B7401 !important; }

.nav-item:nth-child(3) .nav-link::after { background-color: #698EE9 } /* Members */
.nav-item:nth-child(3) .nav-link:hover { color: #698EE9 !important; }

.nav-item:nth-child(4) .nav-link::after { background-color: #C3020D; } /* Publications */
.nav-item:nth-child(4) .nav-link:hover { color: #C3020D !important; }

.nav-item:nth-child(5) .nav-link::after { background-color: #8CC63E } /* Projects */
.nav-item:nth-child(5) .nav-link:hover { color: #8CC63E !important; }

.nav-item:nth-child(6) .nav-link::after { background-color: #EDAA03 } /* Activities */
.nav-item:nth-child(6) .nav-link:hover { color: #EDAA03 !important; }

/* Notification Dot for Activities */
.notification-dot {
    position: absolute;
    top: -2px;
    right: -8px;
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Social Media Links */
.social-links {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.social-links a {
    color: #333;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #0E1657;
}

/* UWI Logo Icon Styling */
.uwi-logo-nav{
        height: 1.75rem !important; /* Match the size of font icons */
}

.uwi-logo-icon {
    /* height: 1.75rem; */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: grayscale(100%); /* Make it grayscale by default to match other icons */
    opacity: 0.8; /* Slightly transparent to match icon appearance */
}

/* Navbar UWI Logo */
.navbar .uwi-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .uwi-logo-link:hover .uwi-logo-icon {
    transform: scale(1.1);
    filter: grayscale(0%); /* Show color on hover */
    opacity: 1;
}

/* Footer UWI Logo */
.footer-social-links .uwi-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social-links .uwi-logo-link:hover .uwi-logo-icon {
    transform: scale(1.1);
    filter: grayscale(0%); /* Show color on hover */
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .uwi-logo-icon {
        height: 1rem; /* Slightly smaller on mobile */
    }
}

/* Alternative: If you want to keep some color but make it more subtle */

.uwi-logo-icon {
    filter: saturate(0.75) brightness(0.8);
}

.uwi-logo-link:hover .uwi-logo-icon {
    filter: saturate(1) brightness(1);
}


/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-nav-centered {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin: 1rem 0;
    }
    
    .nav-link {
        margin: 0 0.5rem;
    }
    
    .navbar-contact {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
    
    .social-links {
        gap: 0.3rem;
        justify-content: center;
    }
    
    .social-links a {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav-centered {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-link {
        margin: 0.25rem 0;
    }
    
    .navbar-contact {
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .contact-item {
        justify-content: center;
    }
}