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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Navigation */
nav {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/profile.png') center/cover no-repeat;
    color: white;
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.15rem;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 1rem;
}

.title {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    opacity: 0.95;
}

.affiliation {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sections */
section {
    padding: 3rem 0;
}

.about {
    background-color: #f8f9fa;
}

.about h2,
.highlights h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

/* Highlight Cards */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.highlight-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Sections */
.content {
    background-color: #f8f9fa;
}

.content h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

.content h4 {
    color: #444;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem 0;
}

/* Research Page */
.research-list {
    list-style: none;
    padding-left: 0;
}

.research-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.research-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.publications {
    margin-top: 1.5rem;
}

.publication {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pub-authors {
    color: #555;
    margin-bottom: 0.5rem;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.pub-venue {
    color: #666;
    margin-bottom: 0.5rem;
}

.pub-links a {
    color: #667eea;
    text-decoration: none;
    margin-right: 1rem;
}

.pub-links a:hover {
    text-decoration: underline;
}

.see-more {
    margin-top: 2rem;
    font-style: italic;
}

.projects {
    margin-top: 1.5rem;
}

.project {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* People Page */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.person-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.person-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #667eea;
}

.person-card h4 {
    color: #2c3e50;
    margin: 0.5rem 0;
}

.person-title {
    color: #667eea;
    font-weight: 500;
    margin: 0.3rem 0;
}

.person-email {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.person-email a {
    color: #666;
    text-decoration: none;
}

.person-email a:hover {
    color: #667eea;
}

.person-bio {
    color: #555;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.alumni-list {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 2rem 0;
}

.alumni-list ul {
    list-style: none;
    padding-left: 0;
}

.alumni-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.alumni-list li:last-child {
    border-bottom: none;
}

.collaborator-list {
    list-style: none;
    padding-left: 0;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.collaborator-list li {
    padding: 0.5rem 0;
}

.collaborator-list a {
    color: #667eea;
    text-decoration: none;
}

.collaborator-list a:hover {
    text-decoration: underline;
}

.join-us {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 2rem 0;
}

.join-us a {
    color: #667eea;
    text-decoration: none;
}

.join-us a:hover {
    text-decoration: underline;
}

/* Teaching Page */
.courses {
    margin-top: 1.5rem;
}

.course {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.previous-courses {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    list-style: none;
}

.previous-courses li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.previous-courses li:last-child {
    border-bottom: none;
}

.students {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    list-style: none;
    margin: 1rem 0;
}

.students li {
    padding: 0.5rem 0;
}

/* Contact Page */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-section h3 {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    padding: 0.5rem 0;
}

.social-links a {
    color: #667eea;
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

.prospective-students {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.prospective-students ul {
    margin-top: 1rem;
}

.prospective-students li {
    margin: 1rem 0;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Links */
a {
    color: #667eea;
    transition: color 0.3s;
}

a:hover {
    color: #764ba2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .highlight-grid,
    .people-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Blog Styles */
.blog-posts {
    margin: 2rem 0;
}

.blog-post-preview {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-post-preview h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.blog-post-preview h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-post-preview h3 a:hover {
    color: #667eea;
}

.post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post-preview p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Individual Blog Post */
.blog-post {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.blog-post h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.blog-post h3 {
    color: #444;
    margin: 1.5rem 0 1rem 0;
}

.blog-post p {
    margin-bottom: 1rem;
}

.blog-post ul, .blog-post ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.blog-post li {
    margin-bottom: 0.5rem;
}

.blog-post code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-post pre {
    background: #2c3e50;
    color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

.blog-post pre code {
    background: transparent;
    padding: 0;
    color: #f8f9fa;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

.blog-post blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.prev-post, .next-post {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.prev-post:hover, .next-post:hover {
    text-decoration: underline;
}

.back-to-blog {
    text-align: center;
    margin: 2rem 0;
}

.back-to-blog a {
    color: #667eea;
    text-decoration: none;
}

.back-to-blog a:hover {
    text-decoration: underline;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}
