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

body {
    font-family: 'CMU Serif', 'Computer Modern Serif', serif;
    background-color: #ffffff;
    color: #2c2c2c;
}

/* Site Header with Name */
.site-header {
    text-align: center;
    padding: 40px 20px 20px 20px;
}

.site-title {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #2c2c2c;
    font-family: 'CMU Serif', 'Computer Modern Serif', serif;
}

/* Navigation */
.navbar {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-menu {
    list-style: none;
    display: inline-flex;
    gap: 40px;
}

.nav-menu a {
    font-family: 'CMU Serif', 'Computer Modern Serif', serif;
    font-size: 16px;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #4a7ba7;
}

/* Main Content */
.main-content {
    max-width: 980px;
    margin: 100px auto;
    padding: 0 30px;
}

.content-wrapper {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* Profile Image */
.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 243px;
    height: 349px;
    display: block;
}

/* Text Content */
.text-content {
    flex: 1;
    padding-top: 0;
}

.text-content p {
    font-family: 'CMU Serif', 'Computer Modern Serif', serif;
    font-size: 17px;
    line-height: 1.6em;
    color: #2c2c2c;
    margin-bottom: 1.2em;
    font-weight: 400;
}

.text-content a {
    color: #4a7ba7;
    text-decoration: none;
}

.text-content a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links img {
    width: 39px;
    height: 39px;
    display: block;
}

.social-links a:hover img {
    opacity: 0.7;
}

/* Research & Teaching Pages */
.page-header {
    text-align: center;
    padding: 40px 20px 20px 20px;
}

.page-content {
    max-width: 980px;
    margin: 60px auto;
    padding: 0 30px;
}

.page-content h2 {
    font-family: 'CMU Serif', 'Computer Modern Serif', serif;
    font-size: 30px;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 30px;
    margin-top: 50px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h4 {
    font-family: 'CMU Serif', 'Computer Modern Serif', serif;
    font-size: 17px;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.publication-item {
    margin-bottom: 35px;
}

.publication-item p {
    font-family: 'CMU Serif', 'Computer Modern Serif', serif;
    font-size: 15px;
    line-height: 1.6em;
    color: #2c2c2c;
    margin-bottom: 5px;
    font-weight: 400;
}

.publication-item .authors {
    font-style: italic;
    color: #5a5a5a;
}

.publication-item a {
    color: #4a7ba7;
    text-decoration: none;
}

.publication-item a:hover {
    text-decoration: underline;
}

.abstract-toggle {
    cursor: pointer;
    color: #4a7ba7;
}

.abstract-text {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 2px solid #4a7ba7;
    font-size: 14px;
    line-height: 1.5em;
}

.abstract-text.show {
    display: block;
}

/* Teaching Items */
.teaching-item {
    margin-bottom: 15px;
}

.teaching-item p {
    font-family: 'CMU Serif', 'Computer Modern Serif', serif;
    font-size: 15px;
    line-height: 1.6em;
    color: #2c2c2c;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .text-content {
        text-align: left;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .main-content {
        margin: 60px auto;
    }
}
