:root {
    --primary-color: #003366;
    --text-color: #222222;
    --bg-color: #fcfcfc;
    --border-color: #e0e0e0;
    --link-color: #0056b3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* Header & Search Bar */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: bold;
}

.nav-search input {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Profile Layout */
.profile-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.profile-info h1 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 2rem;
}

.title {
    font-size: 1.1rem;
    font-weight: 600;
}

.email {
    font-family: monospace;
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    display: inline-block;
    border-radius: 3px;
}

.profile-photo img {
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Sections & Links */
.content-section h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.3rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Publications */
.pub-list li {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 650px) {
    .profile-section {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.8rem;
    }
}