* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* Navigation Styles */
nav {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

nav a {
    padding: 4px 10px;
    background-color: transparent;
    color: #555;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
    font-weight: 400;
    font-size: 0.9em;
    border: 1px solid #e0e0e0;
}

nav a:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

/* Main Layout - Two Column from the start */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

.content {
    min-width: 0;
}

/* Sidebar - Profile + News */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

/* Profile Section in Sidebar */
.profile-section {
    margin-bottom: 30px;
    text-align: center;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #eee;
}

.profile-section h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #222;
    font-weight: 600;
}

.profile-section .subtitle {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.contact-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.contact-btn {
    padding: 5px 10px;
    background-color: transparent;
    color: #555;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
    font-size: 0.8em;
    border: 1px solid #ddd;
}

.contact-btn:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

/* Section Styles */
section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #222;
    font-weight: 600;
}

h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
    color: #222;
    font-weight: 600;
}

/* About Section */
.about-content {
    font-size: 1em;
    line-height: 1.7;
    color: #444;
}

.about-content p {
    margin-bottom: 12px;
}

.about-content a {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
}

.about-content a:hover {
    border-bottom-color: #2c3e50;
}

.links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
}

.links a:hover {
    text-decoration: underline;
}

/* News Section in Sidebar */
.news-container {
    padding: 12px;
    background-color: #fafafa;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    max-height: 400px;
    overflow-y: auto;
}

.news-item {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-date {
    color: #666;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.8em;
}

.news-text {
    color: #444;
    line-height: 1.6;
    font-size: 0.85em;
}

/* Papers Section - Clean, no boxes */
.paper {
    margin-bottom: 20px;
}

.paper-title {
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
    font-size: 1em;
    line-height: 1.5;
}

.paper-title a {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.paper-title a:hover {
    border-bottom: 1px solid #2c3e50;
}

.paper-authors {
    color: #666;
    margin-bottom: 3px;
    font-size: 0.95em;
}

.paper-venue {
    color: #888;
    font-style: italic;
    font-size: 0.9em;
}

.paper-status {
    color: #888;
    font-style: italic;
    font-size: 0.9em;
}

/* View All Publications Button */
.view-all-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.view-all-btn:hover {
    background-color: #e0e0e0;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid #ddd;
    margin-top: 50px;
    color: #888;
    font-size: 0.85em;
}

/* Responsive Design */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        order: -1; /* Move sidebar to top on mobile */
        margin-bottom: 30px;
    }
    
    .profile-section {
        margin-bottom: 25px;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .news-container {
        max-height: 300px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 15px 15px;
    }

    h1 {
        font-size: 1.4em;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    h3 {
        font-size: 1em;
    }
}
