:root {
    --primary-navy: #1B365D;
    --secondary-burgundy: #8B0000;
    --accent-blue: #4A90E2;
    --background-white: #FFFFFF;
    --text-charcoal: #333333;
    --subtle-grey: #F8F9FA;
    --link-hover: #2C5282;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-charcoal);
    background-color: var(--background-white);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: normal;
    margin-bottom: 0.5em;
    color: var(--text-charcoal);
}

h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.5em;
    margin-top: 1em;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

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

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.95em;
}

.breadcrumb a {
    color: var(--accent-blue);
}

.hero-section {
    margin-bottom: 30px;
}

.hero-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
}

.hero-text h1 {
    margin-bottom: 0.2em;
    font-size: 2em;
}

.email {
    color: var(--text-charcoal);
    margin-bottom: 0.5em;
    letter-spacing: 0.5px;
}

.social-links {
    font-size: 0.95em;
}

.social-links a {
    color: var(--accent-blue);
}

.about-section {
    margin: 30px 0;
}

.about-section p {
    margin-bottom: 1em;
}

.quick-links {
    margin-top: 1.5em;
}

.quick-links a {
    font-weight: 500;
}

.section-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

.news-section {
    margin: 30px 0;
}

.star {
    color: #FFD700;
}

.news-item {
    margin: 10px 0;
}

.news-highlight {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
}

.news-image {
    flex-shrink: 0;
}

.news-image img {
    width: 200px;
    height: auto;
    border: 1px solid #ddd;
}

.news-text h3 {
    margin-bottom: 0.5em;
}

.research-group-section {
    margin: 30px 0;
}

.research-questions {
    list-style: none;
    margin: 15px 0;
}

.research-questions li {
    margin: 10px 0;
}

.group-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.member-column h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    margin-top: 15px;
}

.member-column ul {
    list-style: none;
}

.member-column li {
    margin: 5px 0;
}

.group-info {
    margin-top: 20px;
    font-size: 0.95em;
}

.recent-courses-section {
    margin: 30px 0;
}

.course-list {
    list-style: none;
}

.course-list li {
    margin: 10px 0;
}

.recent-papers-section {
    margin: 30px 0;
}

.paper-item {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
}

.paper-image {
    flex-shrink: 0;
}

.paper-image img {
    width: 150px;
    height: auto;
    border: 1px solid #ddd;
}

.paper-details h3,
.paper-details h4 {
    margin-bottom: 0.3em;
    font-size: 1.1em;
}

.paper-details h3 a,
.paper-details h4 a {
    color: var(--text-charcoal);
    font-weight: 500;
}

.paper-details h3 a:hover,
.paper-details h4 a:hover {
    color: var(--accent-blue);
}

.authors {
    font-size: 0.95em;
    margin: 5px 0;
}

.venue {
    font-size: 0.95em;
    margin: 5px 0;
    color: #666;
}

.links {
    font-size: 0.9em;
    margin-top: 8px;
}

.links a {
    margin: 0 2px;
}

.more-link {
    text-align: center;
    margin: 20px 0 10px 0;
    font-size: 1.5em;
}

.page-intro {
    font-style: italic;
    margin-bottom: 30px;
    color: #666;
}

.papers-year {
    margin: 40px 0;
}

.year-header {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.year-divider {
    border: none;
    border-top: 2px solid #ddd;
    margin: 5px 0 20px 0;
}

.paper-category {
    font-size: 1.1em;
    margin: 25px 0 15px 0;
    font-weight: normal;
}

.course-section {
    margin: 30px 0;
}

.course-item {
    margin: 20px 0;
}

.course-item h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.course-item h3 a {
    color: var(--accent-blue);
}

.talks-section {
    margin: 30px 0;
}

.talk-item {
    margin: 20px 0;
}

.talk-item.highlighted {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.talk-image {
    flex-shrink: 0;
}

.talk-image img {
    width: 200px;
    height: auto;
    border: 1px solid #ddd;
}

.talk-details h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.talk-details h3 a {
    color: var(--text-charcoal);
    font-weight: 500;
}

.talk-details h3 a:hover {
    color: var(--accent-blue);
}

.talk-list p {
    margin: 8px 0;
}

.writing-section {
    margin: 30px 0;
}

.book-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 20px 0;
}

.book-image {
    flex-shrink: 0;
}

.book-image img {
    width: 200px;
    height: auto;
    border: 1px solid #ddd;
}

.book-details h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.book-details p {
    margin: 10px 0;
}

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

.blog-list {
    list-style: none;
    margin: 15px 0;
}

.blog-list li {
    margin: 10px 0;
}

.group-section {
    margin: 30px 0;
}

.group-intro {
    margin-bottom: 15px;
}

.research-area {
    margin: 15px 0;
}

.research-detail {
    margin-left: 20px;
    font-size: 0.95em;
    color: #666;
}

.group-impact {
    margin-top: 20px;
}

.members-section {
    margin: 30px 0;
}

.members-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.member-category h2 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.member-category:first-child h2:first-child {
    margin-top: 0;
}

.member-category ul {
    list-style: none;
}

.member-category li {
    margin: 5px 0;
}

.former-members {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--subtle-grey);
    border-radius: 5px;
}

.former-members h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.former-members p {
    line-height: 1.8;
}

.join-group {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--subtle-grey);
}

footer {
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

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

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    .news-highlight {
        flex-direction: column;
    }

    .group-members,
    .members-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .paper-item,
    .talk-item.highlighted,
    .book-item {
        flex-direction: column;
    }

    .paper-image img,
    .talk-image img,
    .book-image img {
        width: 100%;
        max-width: 300px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.2em;
    }

    .profile-image img {
        width: 120px;
        height: 120px;
    }
}
