/* general reset for padding and margin */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.6;
    background-color: #f9f9f9;
    /* ← Add this line */
}

main {
    min-height: 100vh;
    background-image: linear-gradient(to top, #F4F2EE 0%, white 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* stays in place during scroll */
    background-size: cover;
    /* ensures no tiling */
}




h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 0.5em;
}

p {
    font-size: 1.05em;
    font-weight: 400;
    color: #4a4a4a;
    margin-bottom: 1em;
}


#timelapse-video {
    position: absolute;
    left: 50%;
    /* Center horizontally */
    top: 50%;
    /* Center vertically */
    transform: translate(-50%, -50%);
    /* Center the video both horizontally and vertically */
    width: 100vw;
    /* full viewport width */
    height: auto;
    /* Maintain aspect ratio */
    object-fit: cover;
    /* cover the container without distortion */
    object-position: center;
    /* center the video vertically to crop evenly from top and bottom */

}





/* Media query for smaller widths to show the full video */
@media (max-width: 1000px) {
    #timelapse-video {
        object-position: center;
        /* Center video to show the full view */
        height: auto;
        /* Allow height to adjust with aspect ratio */
    }
}







/* Modern link container at bottom of banner image */
#top-links {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    top: 30px;
    left: 30px;
    gap: 16px;
    z-index: 3;
}

/* Modern button-style links */
#top-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    /* pill shape */
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#top-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}





/* main content styling */
main {
    padding: 20px;
    color: #333;
    /* text color */
    /* font-family: Arial, Helvetica, sans-serif; */
    text-align: center;
}



/* full-width image styling (instrument at night) */
#full-width-image {
    width: 100%;
    height: 600px;
    /* fixed height */
    object-fit: cover;
    /* ensure image scales while keeping fixed height */
    display: block;
    /* remove any extra space below the image */
}

/* container for header image and slogan text overlay */
#image-container {
    position: relative;
    width: 100%;
    max-height: 700px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5);
    /* 🔥 this line is new */
    z-index: 1;
}

/* overlay slogan text container with grid layout */
.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* two equal columns, slogan is in left */
    align-items: center;
    color: #F9F4ED;
    /* text color */
    background-color: rgba(0, 0, 0, 0.3);
    /* slight dark overlay of timelapse*/
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}



/* slogan text in the first column */
.text-column {
    padding-left: 40px;
    /* optional padding */
    padding-bottom: 50px;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* font for slogan text */
.text-column h1,
.text-column p {
    font-family: 'Inter', sans-serif;
}

.text-column h1 {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}


.text-column h1 {
    font-size: 4.5em;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 10px;
}

.text-column p {
    font-size: 1.4em;
    font-weight: 400;
    line-height: 1;
    color: #e0e0e0;
    margin-bottom: 10px;
}






/* ==========================================================================
   Common Container for the About & Light Curves Sections
   ========================================================================== */
.section-card {
    background: #ffffff;
    border-radius: 16px;
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); */
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 40px;
    /* Consistent internal spacing */
}

/* ==========================================================================
     Top Area: Title Container (Header Row + Subtext)
     ========================================================================== */
.title-container {
    margin: -40px -40px 24px -40px;
    background-color: #ECEFF6;
    /* New background color */
    padding: 20px;
    /* Adjust padding as needed */
    border-radius: 16px 16px 0 0;
}

/* Header row: holds the section title and the visit/learn-more button */
.title-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Place title left; button right */
    gap: 20px;
    border-radius: 16px 16px 0 0;
    background: transparent;
    /* Background provided by the pseudo-element */
}

/* Section Title */
.section-title {
    font-size: 2em;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    margin: 0;
    text-align: left;
}

/* Section Subtext */
.section-subtext {
    font-size: 1.05em;
    font-weight: 400;
    color: #444;
    margin-top: 16px;
    text-align: left;
    max-width: 750px;
}

/* ==========================================================================
     Bottom Area: Content Area (Images for About, Feature List for Light Curves)
     ========================================================================== */
/* ─────────────────────────────────────────────────────────── */
/* About section card spacing                                */
/* ─────────────────────────────────────────────────────────── */
#about .section-card {
    margin-top: 60px;
}

/* ─────────────────────────────────────────────────────────── */
/* Two‑column title + subtext + mosaic layout                */
/* ─────────────────────────────────────────────────────────── */
#about .title-container {
    display: flex;
    flex-wrap: wrap;               /* stack on narrow screens */
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;                     /* space between text and image */
}

#about .title-container .section-subtext {
    flex: 1 1 60%;                 /* grow/shrink, base 60% width */
    min-width: 200px;              /* don't shrink past this */
    margin: 0;                     /* remove default margins */
}

/* Mosaic sits in the title-container, right of the text */
#about .mosaic-container {
    flex: 0 0 25%;                 /* fixed 35% width */
    max-width: 200px;
    align-self: flex-start;        /* align top of text block */
    overflow: visible;             /* from your existing rule */
    position: relative;    
    margin-right: 20px;
    margin-left: 30px;
    transform: translateY(-40px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about .mosaic-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: inherit;        /* use same rounding as card */
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center center;
}

#about .mosaic-container img:hover {
    transform: perspective(1000px) scale(1.15);
    z-index: 10;
}

/* Mosaic caption styling */
.mosaic-caption {
    font-size: 0.6em;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 3px 6px;
    margin-top: 8px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    display: inline-block;
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────── */
/* Full‑width telescope image styling                        */
/* ─────────────────────────────────────────────────────────── */
#about .content-area {
    margin-top: 1rem;              /* space below the title-container */
    padding: 0.5rem;               /* your card's padding */
}

#about .content-area img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); */
}

/* ─────────────────────────────────────────────────────────── */
/* Legacy image‑row styles (optional; remove if unused)       */
/* ─────────────────────────────────────────────────────────── */
.about-images-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
}

.about-images-row a {
    flex: 1 1 0;
    max-width: 500px;
    overflow: hidden;
}

.about-images-row img {
    width: 100%;
    height: 300px;
    object-fit: contain;
}

.about-images-row a img.rounded-corners {
    display: block;
    object-fit: cover;
    border-radius: 10px !important;
}

/* Legacy mosaic hover overrides */
.about-images-row a.mosaic-container {
    overflow: visible !important;
    position: relative;
}

/* Optional standalone mosaic-image rules */
.mosaic-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    padding: 0;
    border-radius: 12px;
}

.mosaic-image:hover {
    transform: scale(1.05);
}

/* Remove loading background from mosaic image */
.mosaic-image.img-loading {
    background: transparent;
    animation: none;
}


/* ==========================================================================
     LIGHT CURVES SECTION SPECIFIC STYLES
     ========================================================================== */


.lightcurves-features li:first-child {
    display: inline-block;
    /* Only occupy the space it needs */
    padding: 0.25em 0.5em;
    /* Adjust padding for spacing around text */
    border: 2px solid #a4c9a4;
    /* Green border */
    border-radius: 8px;
    /* Rounded corners */
}



.lightcurves-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.lightcurves-features li {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Flex container for the light curves content area */
.lightcurves-content {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    gap: 20px;
    /* Space between the list and the image */
    align-items: center;
}

/* Ensure the features list takes up available space */
.lightcurves-features {
    align-self: flex-end;
    max-width: 45%;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
}



/* Style the image with a maximum width of 350px */
.three-about-pics {
    align-self: center;
    /* Ensure it's treated as a block element */
    display: block;
    margin: 0;
    margin-left: 60px;
}



/* ==========================================================================
     AUXILIARY ELEMENTS
     ========================================================================== */
/* Learn More Link */
.learn-more {
    text-decoration: none;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    color: #646464;
    font-size: 0.6em;
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.learn-more:hover {
    transform: scale(1.1);
    font-size: 0.7em;
}

/* Coordinate Link */
.coordinate-link {
    text-decoration: none;
    font-weight: bold;
    font-family: 'IBM Plex Mono', monospace;
    color: inherit;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 3px 6px;
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.coordinate-link:hover {
    font-size: 0.85em;
}

/* Optional three-picture styling */
.three-about-pics {
    max-width: 350px;
    margin-top: 15px;
}

/* Mosaic caption styling */
.mosaic-caption {
    font-size: 0.6em;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 3px 6px;
    margin-top: 8px;
    text-align: center;
    background-color: #ECEFF6;
    display: inline-block;
}

/* ==========================================================================
     BUTTON STYLES (Visit / Learn More)
     ========================================================================== */
.visit-button {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #a4c9a4;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    text-decoration: none;
    color: #1a1a1a;
    background: linear-gradient(to right, #ECEFF6, white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.visit-button:hover {
    background: linear-gradient(to right, #ECEFF6, white);
    /* color: white;
    border-color: transparent; */
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}


/* Alternate Visit Page Button */
.visit-page {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 22px;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.visit-page:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

/* ==========================================================================
     RESPONSIVE ADJUSTMENTS
     ========================================================================== */
@media (max-width: 600px) {
    .title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .visit-button {
        margin-top: 12px;
        margin-left: 30px;
    }
}




/* ==========================================================================
     PUBLICATIONS SECTION
     ========================================================================== */

.publications-content {
    text-align: left;
    /* Center the visit button horizontally */
    margin-top: 24px;
    /* Optional: additional vertical spacing if needed */
}







#team {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 0 100px;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

#team h1 {
    font-size: 2em;
    font-weight: 500;
    margin-bottom: 40px;
    display: inline-block;
    /* Shrinks the width to just the text */
    border-bottom: 2px solid #ccc;
    /* Underline only the text */
    text-align: left;
    /* Ensure the h1 text is left-aligned */
}

/* ─── Team card layout ───────────────────────────────────────────── */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;               /* 32-px gutter between cards */
    justify-content: center; /* centers any short final row */
    align-items: flex-start;
    max-width: 1000px;       /* full content width */
    margin: 0 auto;
    padding-top: 60px;
}

.team-member-link {
    flex: 0 0 300px;         /* fixed 300-px card, no grow / no shrink */
}


/* Individual card styling */
.team-member {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-5px);
}

/* Team member images */
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    /* 👈 elevated on hover */
}


/* Ensure consistent spacing between text elements */
.team-member p {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

/* Team name */
.team-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Subtle divider below the name */
.team-name::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #eee;
    margin: 6px auto 8px;
}

/* Role text */
.team-role {
    font-size: 0.8em;
    font-weight: 500;
    color: #6d6d6d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 2px;
}


.team-affiliation {
    font-size: 0.7em;          /* 0.8 em → 0.7 em for a subtle step down */
    font-weight: 500;
    color: #9a9a9a;               /* same grey as role text */
    text-transform: uppercase; /* keep the all-caps look */
    letter-spacing: 0.4px;
    margin: 0 0 2px;
}


/* Profession text */
.team-profession {
    font-size: 0.8em;
    color: #aaa;
    margin-top: 0;
}

/* Make cards clickable */
.team-member-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}


/* ───────── Past Contributors sub-section ───────── */
.past-title {
    font-size: 1.35em;
    font-weight: 500;
    margin-top: 80px;          /* space above the new section */
    margin-bottom: 32px;
    border-bottom: 2px solid #ccc;
    display: inline-block;
}

.past-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.past-member {
    background: #ffffff;
    border: 1px solid #e5e5e5;     /* subtler than main cards */
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.05); */
    transition: transform 0.3s ease;
}

/* .past-member:hover {
    transform: translateY(-4px);
} */

.past-name {
    font-size: 1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.past-role {
    font-size: 0.75em;             /* one step below .team-role */
    font-weight: 500;
    color: #9a9a9a;                /* lighter grey requested */
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}

.past-affiliation {
    font-size: 0.7em;
    font-weight: 500;
    color: #9a9a9a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}


/* Container that wraps the button and the hidden section */
.et-al-container {
    margin-top: 20px;
    text-align: center;
}

/* The button itself */
.et-al-button {
    background-color: #f5f5f5;
    /* Light gray or any color you prefer */
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-bottom: 10px;
}

/* Hover effect for the button */
.et-al-button:hover {
    background-color: #e8e8e8;
    /* Slightly darker gray */
    border-color: #bbb;
}

/* The small arrow next to 'et al.' */
.et-al-button .arrow {
    margin-left: 5px;
}

/* This is the hidden class to show/hide the extra team. */
.hidden {
    display: none;
}

/* Additional container styling for the expanded section (optional) */
.et-al-section {
    margin-top: 20px;
}









.vertical-pipe-acknowledgments {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #333333;
    vertical-align: middle;
    margin: 0 15px;
}

.funding-logos {
    display: grid;
    gap: 40px;
    /* Space between rows */
    margin: 40px auto;
}

.logo-row {
    display: grid;
    align-items: center;
    justify-items: center;
}

/* Row 1: Three columns, 1fr 2fr 1fr */
.logo-row-1 {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    max-width: 800px;
    margin: 0 auto;
    margin-left: 80px;
    gap: 30px;
    /* Space between columns */

}

.logo-row-1 a:nth-child(2)+a {
    margin-left: -40px;
    /* Remove the gap between middle and last child */
}



.logo-row-1 a:last-child img {
    height: 150px;
    /* Set height to 150px */
    width: auto;
    /* Maintain aspect ratio */
}

.logo-row-2 a:first-child img {
    height: 150px;
    /* Set height to 150px */
    width: auto;
    /* Maintain aspect ratio */
}

.logo-row-2 a:last-child img {
    height: 150px;
    /* Set height to 150px */
    width: auto;
    /* Maintain aspect ratio */
}


/* Horizontal bar between rows */
.horizontal-bar {
    width: 700px;
    height: 2px;
    background-color: #E6E6E6;
    margin: 0 auto;
    /* Center the bar */
}

/* Row 2: Three columns, 1fr 2fr 1fr */
.logo-row-2 {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 60px;
    /* Space between columns */
}

/* Row 3: Single centered column */
.logo-row-3 {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    /* Center the single logo */
    max-width: 400px;
    margin: 0 auto;
}

.logo-row-3 img {
    width: 400px;
    /* Fixed width */
    height: 30px;
    /* Fixed height */
    object-fit: contain;
}

/* Styling for images in all rows */
.logo-row img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    /* Smooth hover effect */
}

.logo-row a:hover img {
    transform: scale(1.05);
    /* Slightly enlarge on hover */
}


#page-footer {
    /* White background */
    color: #646464;
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    padding: 0 20px;
    position: relative;
    margin: 0 10px 10px;
    /* 10px on left, right, and bottom; 0 on top */

    /* Rounded corners */
}


.footer-icons {
    display: flex;
    gap: 10px;
    position: absolute;
    left: 20px;
}

.footer-icon {
    height: 35px;
    max-width: 75px;
    object-fit: cover;
    cursor: pointer;
}

#page-footer p {
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.princeton-logo {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
}

.princeton-logo img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    cursor: pointer;
}











/* ABOUT PAGE */


/* Left Sidebar Navigation */
#about-page-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 18%;
    height: 100vh;
    background-color: #FFFFFF;
    padding: 150px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.05);
    z-index: 10;
    /* Ensure the container serves as a positioning context */
    /* (it's already fixed, so it's fine) */
}

#about-page-navigation .nav-logo {
    position: absolute;
    top: 15px;
    left: 32px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary, #1a1a2e);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: transform 0.2s ease;
}

#about-page-navigation .nav-logo:hover {
    transform: translateY(-1px);
}



/* Remove vertical pipes if they exist */
.vertical-pipe {
    display: none;
}

/* Navigation Link Styles */
.about-nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 1.2em;
    color: #646464;
    text-decoration: none;
    transition: font-size 0.7s ease, color 0.7s ease;
}

.about-nav-link.active-link {
    color: #333333;
    /* Active text color */
    font-weight: bold;
    /* Make text bold */
    border-radius: 5px;
    /* Slightly rounded corners */
    padding: 5px 20px 5px 10px;
    /* background: linear-gradient(to right, #dcdcdc, #ededed); */
    background-color: #DEE7E8;
    transition: all 0.3s ease;
    /* Smooth transition on changes */
}

.nav-icon {
    margin-right: 0;
    /* Space between the icon and text */
    width: 32px;
    height: 32px;
    vertical-align: middle;
    /* Align icon vertically with text */
}


/* Adjust the main content to accommodate the sidebar */
.about-page main {
    margin-left: 15%;
    /* Leave space on the left for the sidebar */
    padding: 20px;
}


section h1 {
    font-size: 2em;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}


/* Main content sections */
section {
    max-width: 1000px;
    margin: 0 auto;
    /*  spacing between sections */
    padding: 0 0 20px;
    /* Add top padding to offset navigation */
    font-family: 'Open Sans', sans-serif;
}

/* Ensure all text in these sections is left-aligned */
#history,
#key-science,
#photo-gallery,
#technical-specifications {
    text-align: left;
}

#key-science {
    margin-top: 90px;
}

#history {
    margin-top: 90px;
    position: relative;
    max-width: 1000px !important;

}

/* definition‑list grid inside each card */
/* -------------------------------------------------------------------
   Technical Specifications Section
   ------------------------------------------------------------------- */

/* Outer grid: auto‑fit two columns, collapse to one on narrow screens */
#technical-specifications .content-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

/* Card styling for each specification group */
#technical-specifications .spec-group {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#technical-specifications .spec-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Heading inside each card */
#technical-specifications .spec-group h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

/* Definition list grid for label/value pairs */
#technical-specifications .spec-group .spec-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    row-gap: 0.75rem;
    column-gap: 1.5rem;
    margin: 0;
    padding: 0;
}

/* Let dt and dd participate directly in the grid */
#technical-specifications .spec-group .spec-item {
    display: contents;
}

/* Label styling */
#technical-specifications .spec-group dt {
    margin: 0;
    font-weight: 600;
    color: #333333;
    text-align: left;
    /* changed from right */
}


/* Value styling */
#technical-specifications .spec-group dd {
    margin: 0;
    color: #555555;
    line-height: 1.5;
}



section h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333333;
}

section p {
    font-size: 1em;
    line-height: 1.6;
    color: #646464;
}

/* Photo gallery styling */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 200px;
    justify-items: center;
}


.photo-gallery img {
    width: 100%;
    height: 200px;
    max-width: 300px;
    border: 2px solid #cccccc;
    border-radius: 5px;
    transition: transform 0.3s ease;
    cursor: pointer;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox-overlay.active {
    display: flex;
}

/* The displayed image */
.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* Navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 0 1rem;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}


@media (max-width: 800px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
}


.photo-gallery img:hover {
    transform: scale(1.05);
}

/* Scroll margin for sections to account for fixed navigation */
#history,
#key-science,
#photo-gallery {
    scroll-margin-top: 150px;
    /* Ensures the content starts below the navigation */
}


/* Timeline container styling */
.timeline-container {
    position: relative;
    padding-top: 20px;
    padding-right: 50px;
    width: 100px;
    flex-shrink: 0;
}


/* Timeline bar styling */
.timeline-bar {
    position: relative;
    width: 0px;
    /* Thickness of the timeline bar */
    background-color: #cccccc;
    height: 100%;
    margin-left: auto;
    /* Align the bar to the right within the timeline container */
}


/* Timeline year links */
.timeline-year {
    position: absolute;
    right: calc(100% + 20px);
    /* Position to the left of the timeline bar */
    transform: translateY(-50%);
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2em;
    color: #a4a4a4;
    text-decoration: none;
    transition: color 0.3s ease, font-weight 0.3s ease;
    text-align: justify;
}


/* Highlight active year */
.timeline-year.active {
    color: #333333;
    font-weight: 525;
}

.history-chunk {
    background-color: #F8F8F8;
    border: 1px solid #e0e0e0;
    /* or whatever border color you prefer */
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 35px;
    padding: 0 20px;
}

.history-container {
    display: flex;
    position: relative;
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding-left: 75px;
    padding-right: 30px;
    padding-top: 30px;
}

/* History section content */
.history-content {
    flex: 1;
    font-family: 'Open Sans', sans-serif;
    /* Space for the timeline */
    padding-left: 20px;
}

/* Container for the text and image */
.history-section-content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    min-height: 350px;
}

/* Style for the text container */
.history-text {
    flex: 1 1 50%;
    /* Grow and shrink, basis at 50% */
    padding: 10px;
    box-sizing: border-box;
}

/* Style for the image container */
.history-image {
    flex: 1 1 50%;
    /* Grow and shrink, basis at 50% */
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* ensures images are responsive */
.history-image img,
.history-image video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Styles for the container holding the two smaller images */
.additional-images {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
}

.additional-images img {
    width: 49%;
    /* So that two images take up approximately 100% together */
    height: auto;
    border-radius: 5px;
}

.history-content h2 {
    margin-top: 20px;
    font-family: 'Open Sans', sans-serif;
}

#history .title-container {
    margin-left: -195px;
    /* Shift the title-container left by 120px */
    margin-right: -30px;
    /* Cancel out the right padding of 30px */
    width: calc(100% + 225px);
    /* 120px (left) + 30px (right) = 150px extra */
}





/* key science on about page */


#key-science .content-area p {
    margin-bottom: 30px;
}

#key-science .title-container {
    margin-bottom: 60px;
}


/* Fade-in-up animation */
/* Initial hidden state */
[data-fade] {
    opacity: 0;
    transform: translateY(20px);
}

/* Animation trigger (clean) */
.fade-in-up {
    animation: fadeInUp 1.2s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



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