/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@700&display=swap');
   
:root {
    --primary-blue: #003366; 
    --accent-gray: #f4f4f4;
    --text-color: #333;
    --bg-color: #F9EDE4;
    /* Added to match Publications Nav */
    --accent-gold: #d8b8a1;
    --text-dark: #3A3A3A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;  
}

body {
    background-color: var(--bg-primary);
	font-family: 'Inter', sans-serif;
	font-size: large;
}

h1, h2, h3, h4, h5, h6, .brand-text {
	font-family: 'Montserrat', sans-serif;
}

/* =========================================
   UNIFIED NAVIGATION BAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333; 
    padding: 10px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.brand-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    color: #ffffff;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: 700; 
    font-size: 1.1rem;
    transition: background 0.3s, color 0.3s;
    border-radius: 4px;
	/* THE FIX: Reserves 3px of invisible space so the active border doesn't stretch the navbar */
    border-bottom: 3px solid transparent;
}

.nav-links li a:hover {
    background-color: #111;
    color: #ffd28c; 
}

.nav-links li a.active {
    background-color: #111;
    color: #ffd28c;
    border-bottom: 3px solid #ffd28c;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 900px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 100%; 
        height: 100vh;
        background-color: #333;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        padding-top: 20px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0; 
    }
    
    .nav-links li a {
        padding: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.toggle .line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.toggle .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* =========================================
   3. COLLABORATORS GRID SECTION
   ========================================= */
#colab {
    padding: 60px 20px;
    background-color: var(--bg-color);
}

/* Container limits width on huge screens and centers the grid */
.colab-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.colab {
    background: white;
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.colab:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.colab img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
    margin-bottom: 15px;
    border: 3px solid var(--accent-gray);
}

.colab a {
    text-decoration: none;
    color: var(--primary-blue);
}

.colab h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.colab a:hover h3 {
    color: #111;
}

.colab p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

/* =========================================
   4. FOOTER
   ========================================= */
footer {
    background: #333;
	color: #fff;
	padding: 20px 0;
	text-align: center;
	font-size: 16px;
}

.footer-content p {
    margin-bottom: 5px;
}