:root {
    --text-primary: #222;
    --text-secondary: #555;
    --text-light: #777;
    --link-color: #0066cc;
    --link-hover: #0052a3;
    --border-light: #e5e5e5;
    --bg-main: #fff;
    --bg-light: #fafafa;
    --accent: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-main);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 20px;
}

header {
    margin-bottom: 60px;
}

.header-content {
    text-align: left;
}

.profile-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.profile-info h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.position {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.institution {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-links a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.contact-links a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

section {
    margin-bottom: 50px;
}

h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent);
}

p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about p:first-child {
    margin-top: 0;
}

.research-statement {
    margin-bottom: 20px;
}

.research-interests {
    margin-top: 20px;
    list-style: none;
    padding-left: 0;
}

.research-interests li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.research-interests li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: bold;
}

.research-interests li strong {
    color: var(--text-primary);
    font-weight: 500;
}

.section-note {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.pub-list {
    margin-top: 25px;
}

.pub-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}

.pub-item:last-child {
    border-bottom: none;
}

.pub-year {
    flex-shrink: 0;
    width: 45px;
    color: var(--text-light);
    font-size: 0.9rem;
    padding-top: 2px;
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1.4;
}

.pub-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.pub-title a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

.pub-authors {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.pub-venue {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

.teaching-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}


.course-list-detailed {
    list-style: none;
    padding-left: 0;
}

.course-list-detailed li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.course-list-detailed li:last-of-type:not(.collapsed) {
    border-bottom: none;
}

.course-list-detailed li.collapsed {
    display: none;
}

.course-list-detailed strong {
    color: var(--text-primary);
    font-weight: 500;
    margin-right: 8px;
}

.semesters {
    color: var(--text-light);
    font-size: 0.9rem;
}

.teaching-responsibilities {
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
}

.service p {
    margin-bottom: 10px;
}

/* News section */
.news-list {
    margin-top: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.news-item:last-of-type:not(.collapsed) {
    border-bottom: none;
}

.news-item.collapsed {
    display: none;
}

.news-date {
    flex-shrink: 0;
    width: 70px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-item p {
    margin: 0;
    flex: 1;
}

/* Toggle button */
.toggle-btn {
    margin-top: 20px;
    padding: 8px 16px;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--link-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:hover {
    background: var(--bg-light);
    border-color: var(--link-color);
}

/* Collapsed items */
.pub-item.collapsed {
    display: none;
}

footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

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

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 500;
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .container {
        padding: 40px 20px;
    }
    
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-info {
        width: 100%;
    }
    
    .contact-links {
        justify-content: center;
    }
    
    .profile-info h1 {
        font-size: 1.75rem;
    }
    
    .pub-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .pub-year {
        width: auto;
    }
    
    
    .news-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-date {
        width: auto;
        font-weight: 500;
    }
}

@media print {
    body {
        font-size: 11pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    a {
        color: var(--text-primary);
    }
}