body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 50px 0 0 0;
    background-color: #f9f9f9;
    color: #333;
}
.container {
    width: 80%;
    margin: 0 auto;
    padding-top: 50px;
}
header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    position: relative;
}
.logo {
    position: absolute;
    left: 0;
    width: 200px;
    height: 200px;
    object-fit: cover;
}
h1 {
    margin: 0;
    font-family: Calibri, narrow;
    font-size: 2.5em;
    text-align: center;
}
nav {
    text-align: center;
    width: 100%;
    margin-top: 20px;
}
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    display: inline-block;
}
.menu > li {
    display: inline-block;
    margin: 0 20px;
    position: relative;
}
.menu > li > a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
    padding: 10px 15px;
}
.menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.menu li:hover ul {
    display: block;
}
.menu li ul li {
    width: 150px;
    text-align: left;
}
.menu li ul li a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    display: block;
}
.menu li ul li a:hover {
    background-color: #eee;
}
.publications-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.publications-table th, .publications-table td {
    padding: 12px 15px;
    text-align: left;
}
.publications-table th {
    background-color: #f8f8f8;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #e0e0e0;
}
.publications-table td {
    border-bottom: 1px solid #e0e0e0;
}
.publications-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.publications-table tr:hover {
    background-color: #f1f1f1;
}
.publications-table td:first-child {
    text-align: center;
    width: 50px;
}
h2 {
    text-align: left;
    margin-top: 50px;
    margin-bottom: 20px;
}
footer {
    text-align: center;
    padding: 50px 0;
    margin-top: 100px;
    background-color: #f1f1f1;
    color: #666;
}
.slideshow {
    width: 800px;
    margin-top: 20px;
    border: 1px solid #ddd;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    height: 400px; /* Set a fixed height for the slideshow container */
}
.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease;
}
.slide.active {
    display: block;
}
.slide-content {
    text-align: left;
}
.slide-content strong {
    font-size: 1.2em;
}
.research-project {
    margin-top: 50px;
}

.research-project {
    margin-top: 50px;
}

.project {
    display: flex;
    align-items: flex-start; /* Aligns the items at the start of the container */
    margin-bottom: 40px;
}

.project figure {
    margin-right: 20px;
    flex-shrink: 0; /* Prevents the figure from shrinking */
}

.project img {
    width: 300px; /* Adjust as needed */
    height: auto; /* Maintains aspect ratio */
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-description {
    flex-grow: 1; /* Takes up remaining space */
}

.project-description h2 {
    font-size: 1.8em;
    margin: 0 0 10px 0; /* Remove top margin if not needed */
}

.project-description p {
    font-size: 1.1em;
    line-height: 1.6em;
    margin-bottom: 10px; /* Adds space below the paragraph */
}

/* Style for the paper-links section */
.project-description .paper-links h3 {
    margin: 20px 0 10px 0; /* Margin adjustments for spacing */
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.project-description .paper-links ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0; /* Ensure no extra space around the list */
}

.project-description .paper-links ul li {
    margin-bottom: 10px;
}

/* Style for links in the paper section */
.project-description .paper-links ul li a {
    text-decoration: none; /* Removes the underline */
    color: #777; /* Inherits the color from the parent element */
    font-size: 1em;
    font-weight: normal;
}

.project-description .paper-links ul li a:hover {
    text-decoration: none; /* Keeps no underline on hover */
    font-weight: bold; /* Bold effect on hover */
    color: #000; /* Slightly darker color on hover */
}

.lab-members {
    margin-top: 50px;
}

.lab-members h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

.member {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.member figure {
    margin-right: 20px;
    flex-shrink: 0;
}

.member img {
    width: 100px; /* Adjust size as needed */
    height: 100px; /* Adjust size as needed */
    object-fit: cover;
    border-radius: 50%; /* Circular images */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.member-description {
    flex-grow: 1;
}

.member-description h3 {
    font-size: 1.5em;
    margin: 0;
    color: #333;
}

.member-description p {
    font-size: 1.1em;
    line-height: 1.6em;
    margin-bottom: 10px;
}

.member-description p:first-of-type {
    font-weight: bold; /* Name and position emphasized */
}

.resources {
    margin-top: 50px;
}

.resources h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

.resource-category {
    margin-bottom: 50px;
}

.resource-category h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.resource-subcategory {
    margin-bottom: 40px;
}

.resource-subcategory h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.resource-subcategory ul {
    list-style-type: none;
    padding-left: 0;
}

.resource-subcategory li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.resource-subcategory figure {
    margin-right: 20px;
    flex-shrink: 0;
}

.resource-subcategory img {
    width: 200; /* Adjust size as needed */
    height: 200px; /* Adjust size as needed */
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resource-description {
    flex-grow: 1;
}

.resource-description h4 {
    font-size: 1.5em;
    margin: 0 0 10px;
    color: #333;
}

.resource-description p {
    font-size: 1.1em;
    line-height: 1.6em;
    margin-bottom: 10px;
}

.resource-links a {
    text-decoration: none;
    color: #777; /* Dark gray */
    font-size: 1em;
    font-weight: normal;
}

.resource-links a:hover {
    color: #000; /* Darker gray on hover */
    font-weight: bold;
}

/* Style for in-text links */
.intext-links a {
    text-decoration: none; /* Removes underline from links */
    color: #777; /* Dark grey color for normal state */
    font-size: 1em; /* Same size as other text */
    font-weight: normal; /* Normal font weight */
}

.intext-links a:hover {
    color: #000; /* Darker grey on hover */
    font-weight: bold; /* Bold text on hover */
}

/* Contact Page Styles */
.contact-page {
    margin-top: 50px;
}

.contact-section, .join-lab-section {
    margin-bottom: 40px;
}

.contact-section h2, .join-lab-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.contact-section p, .join-lab-section p {
    font-size: 1.1em;
    line-height: 1.6em;
    margin-bottom: 20px;
}

.contact-details, .join-options {
    list-style-type: none;
    padding-left: 0;
    font-size: 1.1em;
}

.contact-details li, .join-options li {
    margin-bottom: 10px;
}

.contact-details li strong, .join-options li strong {
    color: #333;
    font-weight: bold;
}

.contact-details li a, .join-options li a {
    text-decoration: none;
    color: #777;
    font-size: 1em;
    font-weight: normal;
}

.contact-details li a:hover, .join-options li a:hover {
    font-weight: bold;
    color: #000;
}
