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

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

a {
    color: #0091B3;
    text-decoration: none;
    transition: all 0.3s;
}

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

header {
    background: linear-gradient(135deg, rgba(0, 40, 86, 0.15) 0%, rgba(0, 145, 179, 0.15) 100%);
    color: #ffffff;
    padding: 3rem 0;
    border-bottom: 3px solid #DAA900;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    transition: opacity 1s ease-in-out;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #ffffff;
}

.subtitle {
    font-size: 1.2rem;
    color: #EFEFEF;
    font-weight: 400;
}

nav {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #E5E5E5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

nav ul {
    list-style: none;
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav li {
    margin: 0;
}

nav a {
    color: #002856;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    transition: all 0.3s;
    font-weight: 500;
}

nav a:hover {
    background: #EFEFEF;
    color: #0091B3;
}

nav a.active {
    background: #E5E5E5;
    color: #002856;
    border-bottom: 3px solid #DAA900;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section {
    margin-bottom: 3rem;
}

h2 {
    color: #002856;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

h3 {
    color: #0091B3;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.project-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    gap: 1.5rem;
}

.project-img {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    background: #EFEFEF;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5B5B5B;
    font-size: 0.9rem;
    border: 2px dashed #E5E5E5;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-content {
    flex: 1;
}

.project-card h4 {
    color: #002856;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.pub-card {
    background: #ffffff;
    border: 1px solid #E5E5E5;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s;
}

.pub-card:hover {
    box-shadow: 0 2px 4px rgba(0,145,179,0.15);
}

.pub-tag {
    flex-shrink: 0;
    background: #0091B3;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    width: 90px;
    height: fit-content;
}

.pub-content {
    flex: 1;
}

.pub-card h4 {
    color: #002856;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1.3;
}

.pub-card h4:hover {
    color: #0091B3;
    text-decoration: underline;
}

.pub-authors {
    color: #5B5B5B;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.pub-venue {
    color: #5B5B5B;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.pub-links-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.pub-links-line a {
    color: #0091B3;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    transition: all 0.2s;
    border: 1px solid #E5E5E5;
}

.pub-links-line a:hover {
    background: #EFEFEF;
    border-color: #0091B3;
}

.pub-award {
    color: red;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Large member cards - for PI and PhD students (65% width) */
.member-card-large {
    background: white;
    border: 1px solid #E5E5E5;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    width: calc(60% - 0.75rem);
    margin-bottom: 1.5rem;
}

/* Small member cards - for MS and Undergraduate students (50% width) */
.member-card-small {
    background: white;
    border: 1px solid #E5E5E5;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* Grid for small cards (2 columns) */
.members-grid-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Member image styles */
.member-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: #EFEFEF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #5B5B5B;
    border: 3px solid #E5E5E5;
    overflow: hidden;
    flex-shrink: 0;
}

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

/* Member content wrapper */
.member-content {
    flex: 1;
}

/* Member information styles */
.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #002856;
    margin-bottom: 0.25rem;
}

.member-title {
    color: #0091B3;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-start-time {
    color: #5B5B5B;
    font-size: 0.85rem;
    font-style: italic;
}

.member-education {
    color: #5B5B5B;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.member-contact {
    color: #5B5B5B;
    font-size: 0.9rem;
}


.opportunity-section {
    background: #EFEFEF;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #E5E5E5;
}

.opportunity-section h3 {
    margin-top: 0;
}

footer {
    background: linear-gradient(135deg, #002856 0%, #0091B3 100%);
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 3px solid #DAA900;
}

.news-item, .funding-item {
    padding: 0.5rem 0 1rem 0;
    border-bottom: 1px solid #E5E5E5;
}

.news-item:last-child, .funding-item:last-child {
    border-bottom: none;
}

.date {
    color: #5B5B5B;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.placeholder {
    color: #5B5B5B;
    font-style: italic;
}

code {
    background: #EFEFEF;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: #002856;
}

pre {
    background: #EFEFEF;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid #E5E5E5;
}

ol {
    margin-left: 2rem;
    margin-top: 1rem;
    line-height: 2;
}

ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    line-height: 1.5;
    list-style-position: outside;
}

.news-item ul {
    margin-left: 0;
    padding-left: 0;
    list-style-position: inside;
}

.news-item li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
    }
    
    nav a {
        padding: 0.75rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .students-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        flex-direction: column;
    }

    .project-img {
        width: 100%;
    }

    .pub-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .pub-tag {
        align-self: flex-start;
    }

    .pi-card {
        flex-direction: column;
        text-align: center;
    }

    .pi-img {
        margin: 0 auto 1rem;
    }
}