body {
    font-family: Georgia, serif;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

.profile-img {
    width: 48%;
    height: 48%;
    justify-content: center;
}

.header-info h1 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.header-info p {
    margin-bottom: 5px;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}
.social-links .social-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    color: inherit;
    line-height: 0;
}
.social-links .social-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}
.social-links .twitter { color: #1DA1F2; }   /* Twitter/X */
.social-links .bluesky { color: #0085FF; }  /* Bluesky */
.social-links .linkedin { color: #0A66C2; } /* LinkedIn */
.social-links .social-icon:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    transition: all 0.15s ease;
}

h2 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4em;
}

h3 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
}

.research {
    text-align: justify;
    margin-bottom: 20px;
}

.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.book {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.book-title {
    font-weight: bold;
}

.student {
    margin-bottom: 8px;
}

.student-name {
    font-weight: bold;
}

.pub {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.media-item {
    margin-bottom: 8px;
    font-size: 0.9em;
}

.filter-controls {
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.filter-controls select {
    padding: 5px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pub-year {
    font-weight: bold;
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.pub-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pub-item:hover {
    background-color: #f9f9f9;
    padding-left: 5px;
    transition: all 0.2s ease;
}

.pub-authors {
    color: #555;
}

.pub-title {
    font-weight: bold;
    color: #2c3e50;
}

.pub-venue {
    font-style: italic;
    color: #666;
}

.pub-type {
    display: inline-block;
    background: #ecf0f1;
    color: #2c3e50;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 10px;
}

.pub-links {
    margin-top: 5px;
}

.pub-links a {
    margin-right: 10px;
    font-size: 0.9em;
}

.show-more-link {
    color: #3498db;
    cursor: pointer;
    margin: 20px 0;
    font-size: 1em;
    text-decoration: underline;
    display: inline-block;
}

.show-more-link:hover {
    color: #2980b9;
}

.hidden {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-img {
        width: 48%;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 20px;
        display: block;
    }

    /* Mobile order: Current Students, Past Students, Sidebar, Publications */
    .main {
        order: 1;
    }

    .sidebar {
        order: 2;
    }

    /* Within main, put publications at the end */
    .main {
        display: flex;
        flex-direction: column;
    }

    .current-students {
        order: 1;
    }

    .past-students {
        order: 2;
    }

    .publications {
        order: 3;
    }
}
