/* General */
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: white;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.5 ;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 40px 20px;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 40px;
}

header h1 {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 600;
}

header h2 {
    margin: 0 0 14px 0;
    font-size: 20px;
    font-weight: 400;
    color: #555;
}

.institution {
    color: #444;
    margin-bottom: 14px;
}

.contact {
    margin: 0;
}

.contact a {
    color: #555;
    text-decoration: none;
}
.contact a:hover {
    text-decoration: underline;
}
.contact a i {
    margin-right: 6px;
}

.contact .separator {
    margin: 0 6px;
}

/* Profile picture */
.profile-pic {
    width: 150px;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #eee;
    flex-shrink: 0;
}

/* Sections */
section {
    margin-bottom: 35px;
}

section h3 {
    font-size: 22px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    padding-bottom: 4px;
    margin-bottom: 12px;
}

section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #333;
}

section h4:first-of-type {
    margin-top: 0;
}

section p {
    line-height: 1.7;
    margin-bottom: 12px;
}

.research-interest {
    color: #0072c6;
    font-weight: 600;
}

section a {
    color: #0072c6;
    text-decoration: none;
}

section a:hover {
    color: #005a9e;
    text-decoration: underline;
}

/* Course links in Teaching section */
.teaching ul li a {
    color: #222;
    text-decoration: underline;
    text-decoration-color: #0072c6;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.teaching ul li a:hover {
    color: #0072c6;
}

/* Lists */
ul {
    margin-top: 8px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.pub-list li {
    margin-bottom: 12px;
}

footer {
    margin-top: 40px;
    text-align: center;
    color: #777;
    font-size: 14px;
}