/* --- Modern Base Styling --- */
body {
    /* Use the linked Google Font (Roboto) */
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    /* Subtle off-white background */
    background-color: #F8F8F8;
    /* Soft dark gray text color */
    color: #333333;
}

/* --- Container and Header --- */
.container {
    /* Slightly less wide for better readability */
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    /* Main content box is white with a subtle shadow and rounded corners */
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

header {
    text-align: center;
    padding: 40px 0 20px 0;
}
header h1 {
    margin: 0 0 10px 0;
    font-size: 2.8em;
    /* Modern, deep blue for branding */
    color: #004d99;
}
header p {
    font-size: 1.1em;
    color: #555;
}

/* --- Navigation --- */
nav ul {
    list-style: none;
    padding: 10px 0 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}
nav ul li {
    display: inline;
    margin: 0 20px;
}
nav ul li a {
    text-decoration: none;
    color: #0077b6; /* Modern link blue */
    font-weight: 500; /* Medium weight */
    font-size: 1.1em;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #003366;
}

/* --- Section and Headings --- */
.section {
    /* Increased padding for more whitespace */
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}
.section h2 {
    /* Slightly darker blue for contrast */
    color: #003366;
    /* Thicker border, using a lighter shade */
    border-bottom: 3px solid #0077b6;
    padding-bottom: 10px;
    margin-bottom: 25px; /* Added space below heading */
    font-weight: 600;
}

/* --- Paper Specific Styling (The new <div>s) --- */
/* This ensures proper separation and spacing for the papers list */
.section > div { 
    margin-bottom: 30px; 
    padding-bottom: 15px; 
    border-bottom: 1px dashed #ddd; /* Subtle visual separation */
}
.section > div:last-child {
    border-bottom: none; /* Remove border from the very last paper */
}
.section div strong {
    display: block; /* Ensures the bold title takes its own line */
    margin-bottom: 10px; /* Space between title and abstract */
    font-size: 1.05em;
}

/* --- General Link Styling --- */
a {
    text-decoration: none;
    color: #0077b6; 
}
a:hover {
    text-decoration: underline;
    color: #003366;
}
/* --- Profile Photo Styling (for a rectangular/square image) --- */
.profile-photo {
    /* Set a specific width and let the height adjust automatically 
       to maintain the image's original aspect ratio. */
    width: 350px; 
    height: auto; 
    
    /* REMOVED: border-radius: 50%; */
    
    /* Add a subtle border or shadow to define the edge */
    border: 1px solid #cccccc; 
    /* Adding a slight shadow for depth is optional, but modern: */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); 
    
    /* Add spacing below the photo */
    margin-bottom: 20px;
}

/* This will now only apply to the link with class="active" */
nav ul li a.active {
    font-weight: bold;
    color: #0066cc;
}
/* Image sizing classes */
.image-small  { max-width: 400px; margin: 20px auto; display: block; }
.image-medium { max-width: 700px; margin: 20px auto; display: block; }
.image-large  { max-width: 1000px; margin: 20px auto; display: block; }