/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}
/* Accessibility helpers */
.visually-hidden {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}
.profile-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
body {
    background: #f5f5f5;
    color: #333;
    font-size: 16px;
}

/* Top navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffffcc;
    backdrop-filter: saturate(150%) blur(6px);
    border-bottom: 1px solid #eaeaea;
}

.nav-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    padding-left: calc(380px + 2rem + 50px);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.nav-links a:hover {
    background: #f2f2f2;
}

/* Offset anchors for sticky header */
:target {
    scroll-margin-top: 64px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.profile-photo {
    width: 180px;          /* adjust as needed */
    height: 180px;         /* make width = height for a perfect circle */
    border-radius: 50%;    /* this makes it circular */
    object-fit: cover;     /* ensures the image covers the box without stretching */
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}


.container {
    display: flex;
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem 1rem;
    gap: 50px;
}

.sidebar {
    flex: 0 0 380px;
    padding-right: 2rem;
    position: sticky;
    top: 2rem;
}

.sidebar .contact-list a {
    word-break: break-word;
}

.name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
}

.affiliation {
    color: #666;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.section {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.about-section {
    background: #f0f2f5;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1b1b1b;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.publication-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
}

.publication-image {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: cover;
}

/* Smaller teaser for specific papers */
.publication-image--small {
    width: 140px;
}

.publication-info {
    flex: 1;
}
.publication-item:last-child {
    border-bottom: none;
}

.publication-title {
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: #222;
}

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

.publication-authors strong {
    font-style: normal;
    font-weight: 600;
}

.publication-meta {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.8rem;
}

.publication-meta strong {
    display: inline-block;
    background: #eef3ff;
    color: #274b8f;
    border: 1px solid #d6e2ff;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Publication link icon */
.pub-icon {
    margin-left: 0.4rem;
    color: #274b8f;
}
.pub-icon:hover { color: #1b3773; }

/* Make [link] same size as surrounding text */
.publication-meta a.external-link {
    font-size: inherit;
}

/* List styling */
ul {
    padding-left: 0;
    margin-left: 0;
}

li {
    padding-left: 2rem;  /* Add 2rem indent to all list items */
    margin-bottom: 0.5rem;
    list-style-position: inside;
}

/* Specific styling for contact list */
.contact-list {
    list-style: none;
    margin: 0 auto;
    display: inline-block;
}

.contact-list li {
    padding-left: 0;  /* remove left indent for tighter centering */
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-section {
    text-align: center;
}

/* Research list styling */
.research-list {
    list-style: none;
    column-count: 2;
    column-gap: 2rem;
}

.research-list li {
    margin-bottom: 0.8rem;
    padding: 0.5rem 1rem;
/*     background: #f8f9fa; */
    border-radius: 4px;
    break-inside: avoid;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

.external-link::after {
    font-size: 0.8em;
}


@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
        padding: 1.5rem;
    }

    .sidebar {
        position: static;
    }

    .research-list {
        column-count: 1;
    }

    .section {
        padding: 1.5rem;
    }

    .publication-item {
        padding: 1rem 0;
    }

    .publication-image {
        width: 140px;
    }

    .publication-image--small {
        width: 110px;
    }

    /* Header layout on small screens */
    .nav-inner {
        justify-content: center;
        padding-left: 1rem;
    }
}

/* Research Interests - Two Column Layout */
/* Target the research interests section specifically */
.main-content .section:nth-child(2) ul {
    column-count: 2;
    column-gap: 2rem;
    column-fill: balance;
}

/* Alternative - if the above doesn't work, we can add a class to the HTML */
.research-interests-list {
    column-count: 2;
    column-gap: 2rem;
    column-fill: balance;
}

/* Make sure list items don't break across columns */
.main-content .section:nth-child(2) ul li {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}
