/* 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: #f5f5f5;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

.lang-switch {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.lang-switch a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s;
}

.lang-switch a:hover {
    border-bottom-color: white;
}

.lang-switch span {
    opacity: 0.7;
}

/* Navigation */
nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover,
nav a.active {
    background-color: #1e3c72;
    color: white;
}

/* Main content */
main {
    background-color: white;
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

section {
    margin-bottom: 3rem;
    scroll-margin-top: 80px;
}

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

h2 {
    color: #1e3c72;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e3c72;
    font-size: 1.8rem;
}

h3 {
    color: #2a5298;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: #0066cc;
    text-decoration: underline;
}

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

/* Figure styles */
figure {
    margin: 2rem auto;
    text-align: center;
    max-width: 100%;
}

figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

/* Publication styles */
.publication-list {
    margin-top: 1.5rem;
}

.publication-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.pub-title {
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

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

.pub-links {
    margin-bottom: 0;
}

.pub-links a {
    margin-right: 1rem;
    color: #2a5298;
}

/* Member styles */
.member-section {
    margin-top: 2rem;
}

.member-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1e3c72;
}

.member-card h4 {
    color: #1e3c72;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.member-card p {
    margin-bottom: 0.5rem;
}

.member-card p:last-child {
    margin-bottom: 0;
}

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

/* Sidebar layout */
.page-with-sidebar {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 20px;
}

.sidebar {
    flex: 0 0 220px;
    background-color: white;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar h3 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #1e3c72;
    padding-bottom: 0.5rem;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar-nav a:hover {
    background-color: #f0f0f0;
    color: #1e3c72;
}

.sidebar-nav a.active {
    background-color: #1e3c72;
    color: white;
}

.main-content {
    flex: 1;
    background-color: white;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        text-align: center;
        padding: 0.75rem 1rem;
    }

    main {
        margin: 1rem auto;
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .page-with-sidebar {
        flex-direction: column;
        margin: 1rem auto;
        gap: 1rem;
    }

    .sidebar {
        position: static;
        flex: 1;
        width: 100%;
    }

    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 1rem;
    }

    .main-content {
        padding: 1rem;
    }
}
