/* Reset default browser spacing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Palladio", "URW Palladio L", "Palatino Linotype", "Palatino", "Book Antiqua", Georgia, serif;
    color: #222222; 
    line-height: 1.65;
    background-color: #ffffff;
    padding: 140px 20px 60px 20px; 
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- THE HEADER FLEXBOX LAYOUT --- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    margin-bottom: 60px;
    width: 100%;
}

.profile-box {
    flex: 0 0 115px;
}

.profile-pic {
    width: 115px;
    height: 115px;
    object-fit: cover;
    border-radius: 50%; 
    display: block;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    text-align: right;
}

h1 {
    font-size: 3rem;
    font-weight: 500; 
    color: #111111;
    margin-bottom: 12px; 
    letter-spacing: -0.5px;
    line-height: 1.0; 
}

/* --- NAVIGATION MENU UPDATES --- */
nav {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}

nav a {
    text-decoration: none; /* Disables standard underlines completely */
    color: #888888; /* Elegant muted gray for unselected tabs */
    font-size: 1.15rem; 
    margin-left: 24px; 
    transition: color 0.2s ease; /* Smooth fade effect when hovering or clicking */
}

/* Snaps the right letter of 'teaching' flush with the end of your name */
nav a:last-child {
    margin-right: 0px; 
}

/* Hovering turns the text to a sharp off-black */
nav a:hover {
    color: #111111;
    text-decoration: none; /* Keeps underlines away on hover */
}

/* THE FONTS COLOR TRIGGER:
   When a tab is active, it removes the underline completely 
   and changes the font color to a deep, intentional academic blue (#0044cc).
   (If you prefer a darker teal/Asai hue, swap this code with #006666)
*/
nav a.active {
    color: #0044cc; 
    font-weight: 400; /* Keeps the profile typography clean without unnatural bold shifts */
    text-decoration: none; 
}

/* --- MAIN CONTENT AREA --- */
.content-body {
    margin-top: 20px;
    clear: both;
}

p {
    margin-bottom: 24px;
    font-size: 1rem;
    text-align: left;
}

.content-body a {
    color: #0044cc; /* Matches body link anchors with your navigation accents */
    text-decoration: none;
}

.content-body a:hover {
    text-decoration: underline;
}

.paper-list, .teaching-list {
    list-style-type: none;
}

.paper-list li, .teaching-list li {
    margin-bottom: 28px;
    font-size: 1rem;
}
/* --- COMPACT LIST LAYOUT FOR PAPERS & TEACHING --- */
.paper-list, .teaching-list {
    list-style-type: none;
    margin-top: 10px;
    padding-left: 0;
}

/* This compact configuration forces both lists to behave exactly the same way */
.paper-list li, .teaching-list li {
    margin-bottom: 10px; /* Snaps item entries closer vertically */
    font-size: 1rem;
    line-height: 1;
}
