/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: #2E2D29;
    margin: 0;
    padding: 0;
    background-color: #D9CDB0;
}

.container {
	background-color: #D4D1D1; /* The "Content" color */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Optional: adds a nice drop shadow */
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
header {
    background: #B83A4B;
    border-bottom: 3px solid #651C32;
    padding: 10px 0;
    position: sticky;
    top: 0;
}

nav ul {
    list-style: none;
    display: flex;
	flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

nav ul li {
    margin: 0 20px;
}

nav a {
    text-decoration: none;
    color: #2E2D29;
    font-weight: 700;
}

nav a.active {
    font-weight: bold;
    border-bottom: 2px solid #006CB8;
}

/* Profile Section */
.profile {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 10px;
    border-bottom: 3px solid #651C32;
}


.profile-text { flex: 3; }
.profile-image { flex: 2; }

.profile-image img {
    width: 90%;
    /* Use a pixel value for consistent rounding */
    border-radius: 20px; 
    
    /* Optional: adds a subtle border to make it look 'framed' */
    border: 1px solid #979694;
    /* Optional: adds a soft shadow for depth */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 { margin-bottom: 5px; color: #222; }
.subtitle { font-style: italic; color: #666; margin-top: 0; }

/* This targets ONLY links with the 'collab' class */
.collab {
    color: #006CB8;
    text-decoration: none;
}

.collab:hover {
    color: #008566;
    text-decoration: underline;
}
.introperson {
    color: #006CB8;
    text-decoration: underline;
}

.introperson:hover {
    color: #008566;
    text-decoration: underline;
}

/* Publications */
h2 {
    border-left: 5px solid #016895;
    padding-left: 15px;
    margin-top: 40px;
	color: #43423E;
}

.pub-list {
    list-style: none;
    padding: 0;
}

.pub-list li {
    margin-bottom: 25px;
}

/* Responsive Design for Mobile */
@media (max-width: 600px) {
    .profile {
        flex-direction: column-reverse;
    }
	
	.profile-image {
        text-align: center;
	}

	nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
        /* Remove margins from li and use gap on the parent instead */
        gap: 0; 
    }

    nav ul li {
        margin: 0; /* Clear existing margins */
        display: flex;
        align-items: center;
    }

    /* The pipe separator logic */
    nav ul li:not(:last-child)::after {
        content: "|";
        color: #651C32;      
        font-size: 0.9em;
        padding: 0 12px; 
        pointer-events: none; 
    }
}