:root {
    --dark-blue: #1a365d;
    --light-gray: #f7f7f7;
    --border-radius: 20px;
    --font-family: 'Roboto', sans-serif;
    --font-family-headings: 'Roboto Slab', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-blue);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 40px);
}

/* Left Panel */
.left-panel {
    flex: 0 0 280px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid #bbb;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.name {
    font-family: var(--font-family-headings);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.headshot {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #ddd;
}

.headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.social-icons a {
    color: var(--dark-blue);
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.nav-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.7;
}


/* Right Panel */
.right-panel {
    flex: 1;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid #bbb;
    padding: 30px 35px;
    overflow-y: auto;
}

#about {
    margin-top: 10px;
}

section {
    margin-bottom: 40px;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    font-family: var(--font-family-headings);
    color: var(--dark-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--dark-blue);
}

p {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

strong {
    color: var(--dark-blue);
}

/* Research List */
.research-list {
    margin: 15px 0 15px 35px;
    font-size: 0.9rem;
}

.research-list li {
    margin-bottom: 10px;
}

/* News List */
.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.news-list .date {
    color: var(--dark-blue);
    font-weight: bold;
    margin-right: 10px;
}

.news-list a {
    color: var(--dark-blue);
    text-decoration: underline;
}

.news-container {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-color: var(--dark-blue) transparent;
    scrollbar-width: thin;
}

.news-container::-webkit-scrollbar {
    width: 6px;
}

.news-container::-webkit-scrollbar-track {
    background: transparent;
}

.news-container::-webkit-scrollbar-thumb {
    background-color: var(--dark-blue);
    border-radius: 3px;
}

.news-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--dark-blue);
}

/* Publications */
.publication {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.publication:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pub-title {
    font-weight: bold;
    color: var(--dark-blue);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.pub-authors {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.pub-authors .highlight {
    font-weight: bold;
    color: var(--dark-blue);
}

.pub-venue {
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    margin-bottom: 8px;
}

.pub-links {
    display: flex;
    gap: 15px;
}

.pub-links a {
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 0.8rem;
}

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

/* Scrollbar styling */
.right-panel::-webkit-scrollbar {
    width: 8px;
}

.right-panel::-webkit-scrollbar-track {
    background: transparent;
}

.right-panel::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.right-panel::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        flex-direction: column;
        height: auto;
    }

    .left-panel {
        flex: none;
        width: 100%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .left-panel .name,
    .left-panel .headshot,
    .left-panel .social-icons,
    .left-panel .nav-links {
        align-self: center;
    }

    .name {
        font-size: 1.2rem;
        text-align: center;
    }

    .headshot {
        width: 120px;
        height: 120px;
    }

    .social-icons {
        justify-content: center;
    }

    .right-panel {
        flex: none;
        max-height: none;
        padding: 20px;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: auto;
    }
}
