body {
    margin: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    min-height: 675px;
    background-color: #f8f8f8; /* Subtle white background */
}
p {
    width: 100%;
    left: 0px;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    letter-spacing: 0px;
    text-align: center;
    vertical-align: top;
    max-width: 550px; /* Keep max-width for content readability */
    color: #555555; /* Darker text for readability on light background */
    line-height: 1.6;
    margin: 0px;
}
a:hover {
    color: #91714B;
}
h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0px;
    text-align: center; /* Keep text alignment */
    margin: 8px;
    color: #333333; /* Darker text for readability on light background */
}
h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #91714B;
    margin-bottom: 24px;
    text-transform: uppercase;
    text-align: center; /* Center the text within the h2 element */
}
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
}
.ic-launch  {
    margin-left: 10.5px;
    width: 21px !important;
    height: 20px !important;
}
.link-container {
    margin-top: 32px;
    margin-bottom: 32px;
}
.link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14px; /* Keep font size */
    color: #333333; /* Darker text for readability on light background */
    margin-top: 8px;
    text-decoration: none;
}
.profile-image {
    /* Existing styles */
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #4E2A15;
    margin-bottom: 24px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background-color: #4E2A15;
}

/* Styles for the cover image slider */
.cover-image-slider {
    position: relative;
    width: 100%;
    height: 70vh; /* Desktop height */
    overflow: hidden;
    margin-bottom: 30px; /* Add some space below the slider */
}

.slider-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex-basis: 100%; /* Each slide takes 100% of the flex container's width */
    flex-shrink: 0; /* Prevents shrinking */
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--object-position, 50% 50%); /* Use CSS variable for focus */
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.slider-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-control.prev {
    left: 10px;
}

.slider-control.next {
    right: 10px;
}

.slider-controls-bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* New styles for the PI bio section on the front page */
.frontpage-pi-bio-section {
    display: flex;
    flex-direction: row; /* Default to horizontal on desktop */
    align-items: center; /* Vertically align items */
    justify-content: center; /* Center the content horizontally */
    gap: 40px; /* Space between text and image */
    padding: 60px 20px; /* Inherit or define padding */
    max-width: 1000px; /* Match main-content-container max-width */
    margin: 0 auto; /* Center the block */
    width: 100%; /* Take full width */
    box-sizing: border-box;
}

.frontpage-pi-bio-section .pi-quote-text {
    flex: 1; /* Allow text to take available space */
    max-width: 600px; /* Limit text width for readability */
    text-align: left; /* Align paragraph to the left */
}

.frontpage-pi-bio-section .pi-quote-text p {
    text-align: left; /* Override global center alignment for p */
    max-width: none; /* Remove global max-width constraint for this specific p */
    margin-bottom: 0; /* Remove any default bottom margin */
    font-style: italic; /* Make the quote italic */
    font-size: 20px; /* Slightly larger font for the quote */
    line-height: 1.7;
    color: #4E2A15; /* A distinct color for the quote */
    padding-left: 20px; /* Indent the quote */
    border-left: 4px solid #91714B; /* Add a left border as a quote indicator */
    margin-top: 10px; /* Add some space above the quote */
}

.frontpage-pi-bio-section .pi-photo-and-title {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center image and title */
    text-align: center; /* Center text within this block */
    flex-shrink: 0; /* Prevent shrinking */
}

.frontpage-pi-bio-section .pi-photo-and-title .profile-image {
    margin-bottom: 10px; /* Adjust margin below image for the new layout */
}

.frontpage-pi-bio-section .pi-photo-and-title h2 {
    margin-top: 0; /* Remove default h2 top margin */
    margin-bottom: 0; /* Remove default h2 bottom margin */
    text-align: center; /* Ensure title is centered under the image */
}

/* Styles for Research Area Blocks */
.research-area-block {
    display: flex;
    flex-direction: row; /* Default desktop layout */
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1000px; /* Align with main content container */
    margin: 30px auto; /* Space between blocks and center */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.research-area-block:nth-child(even) { /* Alternate layout for even blocks */
    flex-direction: row-reverse;
}

.research-image-container {
    flex-shrink: 0;
    width: 300px; /* Fixed width for image on desktop */
    height: 200px; /* Fixed height */
    overflow: hidden;
    border-radius: 8px;
}

.research-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.research-description {
    flex: 1;
}

.research-description h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left; /* Override global h3 center */
}

.research-description p {
    text-align: left; /* Override global p center */
    max-width: none; /* Override global p max-width */
    margin-bottom: 0;
}

/* Overlay for the research statement */
.cover-statement-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 600px; /* Limit width for readability on desktop */
    padding: 30px 40px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background */
    color: white; /* Light text color */
    z-index: 5; /* Ensure it's above the slider images */
    box-sizing: border-box; /* Include padding in width */
}

.cover-statement-overlay h2 {
    color: white; /* Override default h2 color */
    text-align: left;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.cover-statement-overlay p {
    color: white; /* Override default p color */
    text-align: left;
    font-size: 18px;
    line-height: 1.5;
    max-width: none; /* Remove max-width constraint from global p */
}

/* Styles for "Join the Lab" Section */
.join-lab-section {
    display: flex;
    flex-direction: column; /* Stack vertically by default */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    max-width: 1000px;
    margin: 30px auto;
    background-color: #f0f0f0; /* Light background for contrast */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
    text-align: center;
}

.join-lab-section .campus-image {
    width: 100%;
    max-width: 800px; /* Limit image width */
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    object-fit: cover;
}

.join-lab-content {
    max-width: 700px; /* Limit text width for readability */
}

.join-lab-content h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.join-lab-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 15px;
    text-align: center; /* Ensure paragraphs are centered */
    max-width: none; /* Override global p max-width */
}

.join-lab-content .call-to-action {
    font-weight: 700;
    color: #4E2A15; /* A distinct color for the call to action */
    font-size: 20px;
}

/* Styles for Publications Section */
.publications-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    background-color: #ffffff; /* White background for contrast */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
    text-align: center;
}

.publications-content {
    max-width: 700px;
}

.publications-content h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.publications-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 25px;
    text-align: center;
    max-width: none;
}

.publications-content .button-link {
    display: inline-block;
    background-color: #4E2A15; /* Primary button color */
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.publications-content .button-link:hover {
    background-color: #62361B; /* Darker shade on hover */
}

/* New styles for the main content container */
.main-content-container {
    width: 100%; /* Take full width available */
    max-width: 1000px; /* Max width for desktop */
    margin: 0 auto; /* Center the container on desktop */
    flex-grow: 1; /* Allow it to grow and take available space, pushing the footer down */
    display: flex; /* To manage its children, especially if .content is its direct child */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center content horizontally within the container */
}

.navigation {
    width: 100%;
    height: 90px;
    display: flex;
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: #FFFFFF;
    color: #62361B;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navigation.menu-open { /* Optional: Add a class to navigation when menu is open if needed for overall layout */ }
.logo {
    height: 75px;
    width: auto;
    display: block;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
}
.info-box {
    margin-top: 24px;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.menu-bar { /* Default desktop styles */ }
.menu-bar {
    margin-left: auto; /* Pushes the menu to the right */
}
.menu-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px; /* Space between menu items */
}
.menu-bar a {
    text-decoration: none;
    color: #0055b3; /* pubsync's --primary; prev. Bethlehem Sky */
    font-weight: 400; /* Changed from bold to regular */
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.3s ease;
}
.menu-bar a:hover {
    color: #66b0ff; /* Bethlehem Sky for hover */
    text-decoration: underline; /* Underline on hover */
}

/* Hamburger Icon Styles */
.hamburger-icon { /* Hidden by default on desktop */
    background: none;
    border: none;
    display: none; /* Ensure it's hidden on desktop */
}
.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #62361B; /* Color of the hamburger lines */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation */
.hamburger-icon.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.hamburger-icon.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger-icon.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile-specific styles */
@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .navigation {
        justify-content: space-between; /* Space out logo and hamburger */
    }

    .hamburger-icon {
        display: flex; /* Show hamburger icon on mobile */
        flex-direction: column; /* Stack spans vertically */
        justify-content: space-between; /* Distribute spans evenly */
        cursor: pointer;
        padding: 10px;
        z-index: 1000;
        margin-left: auto;
        position: relative;
        width: 30px;
        height: 30px; /* Increased height for better spacing */
    }
    .menu-bar {
        flex-direction: column;
        flex-direction: column; /* Stack spans vertically */
        position: absolute;
        top: 90px; /* Below the navigation bar */
        left: 0;
        width: 100%;
        background-color: #FFFFFF; /* Background for the mobile menu */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
        display: none; /* Hide menu by default on mobile */
    }
    .menu-bar--open {
        display: flex; /* Show menu when active */
    }
    .menu-bar ul {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }
    .menu-bar li {
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid #eee; /* Separator for menu items */
    }
    .menu-bar li:last-child {
        border-bottom: none;
    }
    .menu-bar a {
        display: block; /* Make links fill the list item */
        padding: 10px 20px;
        color: #0055b3; /* matching desktop */
    }
}

.contact-info {
    font-weight: 700;
}
.footer {
    width: 100%;
    background-color: #2b1b11;
    background-image: url('https://cas.lehigh.edu/themes/custom/cas_home/images/footer-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}
.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
.footer-section {
    flex: 1;
    min-width: 250px;
}
.footer-section h3 {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #91714B;
}
.footer-section h3 a {
    text-decoration: none;
    color: inherit;
}
.footer-section p {
    text-align: left;
    font-size: 14px;
    color: #E2E2E2;
    margin-bottom: 10px;
}
.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 12px;
    color: #999;
}

@media screen and (max-width: 580px) and (min-width: 0px) {
    h1, p, .link-container {
        width: 80%; /* Keep width at 80% */
        margin: 0 auto; /* Center the block-level element */
    }
}
@media screen and (min-width: 650px) and (min-height: 0px) and (max-height: 750px) {
    .link-container {
        margin-top: 12px;
    }
    h1 {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

/* CSS for email obfuscation */
.no-bot-pls::before {
    content: attr(data-user);
}
.no-bot-pls::after {
    content: '@' attr(data-domain);
}

/* Adjust .content to fit within the new container */
.content {
    /* Removed flex: 1 as main-content-container now handles flex-grow */
    /* justify-content: center is kept to vertically center content within itself if it's shorter than the container */
    /* The existing width: 100% and padding: 60px 20px; will provide mobile margins */
}

@media (max-width: 768px) {
    .cover-image-slider { height: 65vh; } /* Mobile height adjustment */
    .cover-statement-overlay {
        padding: 20px 25px;
        max-width: 100%; /* Allow full width on smaller screens */
    }
    .cover-statement-overlay h2 {
        font-size: 24px;
    }
    .cover-statement-overlay p { font-size: 16px; }

    /* Mobile responsiveness for the PI bio section */
    .frontpage-pi-bio-section {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 20px; /* Adjust gap for mobile */
        padding: 40px 20px; /* Adjust padding for mobile */
    }

    .frontpage-pi-bio-section .pi-quote-text {
        max-width: 100%; /* Allow full width on mobile */
    }

    .frontpage-pi-bio-section .pi-quote-text p {
        text-align: center; /* Center paragraph on mobile */
    }

    /* Mobile adjustments for research area blocks */
    .research-area-block,
    .research-area-block:nth-child(even) {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 20px;
        padding: 30px 15px;
    }

    .research-image-container {
        width: 100%; /* Full width on mobile */
        height: 180px; /* Adjust height for mobile */
    }

    .research-description h3,
    .research-description p {
        text-align: center; /* Center text on mobile */
    }

    /* Mobile adjustments for join lab section */
    .join-lab-section {
        padding: 40px 15px;
    }

    .join-lab-content h2 {
        font-size: 28px;
    }

    .join-lab-content p {
        font-size: 16px;
    }

    .join-lab-content .call-to-action {
        font-size: 18px;
    }

    /* Mobile adjustments for publications section */
    .publications-section {
        padding: 40px 15px;
    }

    .publications-content h2 {
        font-size: 28px;
    }

    .publications-content p {
        font-size: 16px;
    }
}
