/* General Styles */
body {
    font-family: "Arial", sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Container */
#container {
    max-width: 1200px; /* Increase the width (default might be 800px) */
    margin: auto; /* Center the container */
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Navigation Bar */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    background-color: #444;
    padding: 10px 0;
    margin: 0 0 20px 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #f9f9f9;
    text-decoration: underline;
}

/* Header Styling */
header {
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    align-items: center; /* Align photo and text vertically */
    justify-content: start; /* Align content to the left */
    gap: 20px; /* Space between the photo and text */
}

/*.photo-content {*/
/*    flex: 0 0 auto; */ /* Prevent photo from stretching */
/*}*/


.photo-content {
    width: 180px;
    height: 180px;      /* 正方形 */
    overflow: hidden;   /* 裁剪 */
    border-radius: 50%;
}


/*.profile-photo {*/
/*    width: 200px;*/ /* Increase the width */
/*    height: 200px;*/ /* Match height to width for a perfect circle */
/*    border-radius: 50%;*/ /* Keep the photo circular */
/*    border: 3px solid #ddd;*/ /* Optional: Border styling */
/*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/ /* Optional: Shadow for aesthetics */
/*}*/

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 自动裁剪填满 */
}


.text-content {
    flex: 1; /* Allow text to take up remaining space */
    text-align: left; /* Align text to the left */
}

.text-content h1 {
    margin: 0;
    font-size: 2em; /* Adjust font size for the name */
    color: #333;
}

.text-content p {
    margin: 5px 0 0; /* Add spacing between lines */
    font-size: 1.2em; /* Adjust font size for details */
    color: #555;
}



/* Section Styling */
section {
    margin-bottom: 20px;
}

section h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #444;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

section ul {
    list-style-type: disc;
    margin-left: 20px;
}

section ul li {
    margin-bottom: 5px;
}

/* Publications */
.publications-container {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Space between the image and the content */
}

.publications-image {
    flex: 0 0 auto; /* Prevent the image from stretching */
}

.publication-photo {
    width: 150px; /* Fixed width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add shadow */
}

.teaching-list {
    list-style-type: none; /* Remove bullet points */
    padding: 0;
    margin: 20px 0;
}

.teaching-list li {
    margin-bottom: 10px; /* Add space between lines */
    font-size: 1em;
    color: #333;
}

.teaching-list li a {
    text-decoration: none; /* Remove underline */
    color: #0056b3; /* Link color */
    font-weight: bold;
}

.teaching-list li a:hover {
    text-decoration: underline; /* Underline on hover */
    color: #003f7f; /* Darker link color on hover */
}


/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #777;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
}

.social-links a:hover {
    color: #003f7f;
    text-decoration: underline;
}

.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}



/* Responsive Styling for Smaller Screens */
@media (max-width: 768px) {
    /* Header Content: Stack photo and text vertically */
    .header-content {
        flex-direction: column;
        align-items: center; /* Center-align for better aesthetics */
        text-align: center;
    }

    /* Adjust Profile Photo Size */
    .profile-photo {
        width: 120px; /* Smaller photo size for phones */
        height: 120px;
    }

    /* Adjust Text Content */
    .text-content h1 {
        font-size: 1.8em; /* Slightly smaller font for name */
    }

    .text-content p {
        font-size: 1em; /* Adjust font size for details */
    }

    /* Publications Section */
    .publications-container {
        flex-direction: column; /* Stack image and content */
        align-items: center;
    }

    .publications-image {
        margin-bottom: 10px; /* Add space below the image */
    }

    .publication-photo {
        width: 100%; /* Full width for small screens */
        max-width: 300px; /* Limit maximum size */
    }

    /* Social Links */
    .social-links {
        flex-direction: column; /* Stack links vertically */
        align-items: center;
    }

    .social-links a {
        margin-bottom: 10px; /* Add space between links */
    }
}

