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

body {
    font-family: 'Bitter', Georgia, serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

/* Header and Navigation */
header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    flex: 0 0 auto;
}

.header-logo {
    height: 70px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 17px;
    border: 1px solid transparent;
}

nav a:hover,
nav a.active {
    background-color: #666;
    color: white;
    border-color: #666;
}

/* Main content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 120px);
    background-color: #fff;
    margin: 0 auto;
    max-width: 1200px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Profile section */
.profile-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.profile-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.profile-content h2 {
    font-size: 1.1rem;
    font-weight: normal;
    color: #666;
    margin-bottom: 1rem;
    text-align: center;
}

.affiliation {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-align: center;
}

.contact-info,
.research-interests,
.bio,
.profile-note {
    margin-bottom: 2rem;
}

.contact-info h3,
.research-interests h3,
.bio h3,
.profile-note h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3rem;
    font-weight: 600;
}

.contact-info p {
    line-height: 1.8;
}

.links {
    margin-top: 1rem;
}

.links a {
    color: #666;
    text-decoration: none;
    font-weight: 400;
}

.links a:hover {
    text-decoration: underline;
    color: #333;
}

/* Research and Teaching pages */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
    font-weight: 600;
}

.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3rem;
    font-weight: 600;
}

.publication,
.course {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 3px;
    border-left: 3px solid #666;
}

.publication h3,
.course h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.publication .authors {
    font-style: italic;
    color: #666;
    margin-bottom: 0.3rem;
}

.publication .venue {
    font-weight: bold;
    color: #666;
}

.course .details {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #f4f4f4;
    border-top: 1px solid #ddd;
    padding: 1rem 0;
    text-align: center;
    color: #666;
    margin-top: auto;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image {
        max-width: 200px;
        margin: 0 auto;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile-content h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .profile-content h1 {
        font-size: 1.8rem;
    }

    .profile-content h2 {
        font-size: 1.1rem;
    }

    main {
        padding: 1rem 0;
    }
}