/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #2563eb;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

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

/* Header / Hero */
.header {
    margin-top: 50px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}
.header-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}
.header-info h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 4px;
}
.header-info p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
}
.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s, color 0.2s;
}
.social-links a:hover {
    border-color: #2563eb;
    color: #2563eb;
    text-decoration: none;
}
.social-links a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.social-links a img {
    width: 16px;
    height: 16px;
}

/* Divider */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 30px 0;
}

/* Section titles */
.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #111;
}

/* Teaching */
.teaching-group {
    margin-bottom: 20px;
}
.teaching-group .term {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.teaching-group ul {
    list-style: none;
    padding: 0;
}
.teaching-group li {
    font-size: 15px;
    padding: 6px 0;
    padding-left: 14px;
    border-left: 3px solid #e0e0e0;
    margin-bottom: 4px;
}
.teaching-group li a {
    font-weight: 500;
}

/* Contact */
.contact-block {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    padding-left: 14px;
    border-left: 3px solid #e0e0e0;
}
.contact-block strong {
    color: #333;
}

/* Publications */
.pub {
    display: flex;
    margin-bottom: 24px;
    gap: 16px;
}
.pub-thumb {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}
.pub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pub-body {
    display: flex;
    flex-direction: column;
}
.pub-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}
.pub-title a {
    color: #111;
}
.pub-title a:hover {
    color: #2563eb;
}
.pub-authors {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}
.pub-venue {
    font-size: 13px;
    color: #888;
    margin-top: 1px;
}
.pub-links {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.pub-links a {
    font-size: 13px;
    color: #2563eb;
}
.pub-links a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    margin: 40px 0 30px 0;
    text-align: center;
    font-size: 13px;
    color: #bbb;
}

/* Responsive */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-info h1 {
        font-size: 26px;
    }
    .social-links {
        justify-content: center;
    }
    .pub-thumb {
        width: 80px;
        height: 80px;
    }
}
