:root {
    --primary-color: #003366;
    --secondary-color: #00509e;
    --text-color: #333333;
    --bg-color: #f8f9fa;
    --nav-bg: #ffffff;
    --border-color: #e9ecef;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Header Base */
.main-header {
    background-color: #FFFFFF;
    border-bottom: 4px solid #E84A27; /* Illini Orange */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

/* Header Branding Container */
.header-branding-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 20px 18px 20px;
}

/* Left Side: Lab Branding */
.site-branding {
    display: flex;
    align-items: center;
    max-width: 62%;
}

.logo-link {
    text-decoration: none;
    color: #13294D; /* Illini Blue */
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 92px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.branding-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lab-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.15;
    color: #13294D;
}

.lab-subtitle {
    font-size: 15px;
    color: #E84A27; 
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* School link styling */
.school-link {
    color: #E84A27;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.school-link:hover,
.school-link:focus {
    text-decoration: underline;
}

/* Right Side: University Branding */
.uni-branding {
    display: flex;
    align-items: center;
}

.uni-link {
    color: #13294D;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    line-height: 1.4;
}

.uni-text {
    white-space: nowrap;
}

.block-i {
    height: 54px; 
    width: auto;
}

/* Navigation Container */
.nav-container {
    display: flex;
    padding: 0 20px 15px 20px;
}

.main-nav {
    width: 100%;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #E84A27;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #13294D;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-branding-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .site-branding {
        max-width: 100%;
    }

    .uni-link {
        text-align: left;
        flex-direction: row;
        justify-content: flex-start;
    }

    .mobile-toggle {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 10px;
    }

    .nav-links.active {
        display: flex;
    }
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    margin-top: 2rem;
}

.hero {
    background-color: white;
    padding: 4rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    text-align: center;
}

.hero h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.hero .lab-statement {
    text-align: justify;
    text-justify: inter-word;
}

.recruit-info {
    font-size: 1.1rem;
    max-width: 800px;
    margin: -1.25rem auto 0;
    color: #555;
    text-align: justify;
    text-justify: inter-word;
}

.recruit-info a {
    color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.person-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.avatar {
    width: 120px;
    height: 120px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 3rem;
    flex-shrink: 0;
}

.person-info h3 {
    margin-bottom: 0.25rem;
}

.person-title {
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
    display: block;
}

.person-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.person-links a:hover {
    text-decoration: underline;
}

.project-card {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
}

.project-card h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

.sponsor {
    display: inline-block;
    background-color: var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #495057;
    margin-bottom: 1rem;
}

.project-links {
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.btn:hover {
    background-color: #002244;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.pub-category {
    margin-bottom: 3rem;
    padding-top: 1.5rem;
}

.pub-category h2 {
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border: 0;
}

.pub-list {
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
    list-style: none;
}

.pub-content {
    margin: 0;
    padding: 1rem 0 1rem 1.25rem;
    font-size: 1rem;
    line-height: 1.65;
}

.pub-citation {
    color: var(--text-color);
}

.pub-link {
    display: inline-block;
    margin-top: 0.15rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.pub-link:hover,
.pub-link:focus {
    color: #E84A27;
    text-decoration: underline;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .person-card {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
}
