:root {
  --hopkins-blue: #002D72;
  --hopkins-gold: #FFD100;
  --light-gray: #f7f9fc;
  --dark-gray: #333;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  color: var(--dark-gray);
  background: white;
  text-align: center;
  line-height: 1.4;
}

/* Header */
.header {
  background: linear-gradient(135deg, #002D72, #0048a5);
  color: white;
  padding: 2rem 1rem;
}
.lab-title {
  font-size: 2rem;
  margin: 0.2rem 0;
}
.tagline {
  font-size: 1rem;
  color: #e0e6f0;
  margin: 0;
}

/* Sections */
.section {
  padding: 2rem 1rem;
  
}
.mission-section,
.join-section {
  background: var(--light-gray);
}
h2 {
  margin-bottom: 0.5rem;
  color: var(--hopkins-blue);
}
h3 {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  color: var(--hopkins-blue);
}
p {
  margin: 0.4rem 0;
}






/* Projects */
.projects-section {
  margin-left: 5%;
  margin-right: 5%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  margin-left: 5%;
  margin-right: 5%;
}
.project-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

/* Join */
.hubspot-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  background: var(--hopkins-blue);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}
.hubspot-button:hover {
  background: var(--hopkins-gold);
  color: black;
}

/* Applies the grayscale filter only to team photos */
.person-photo {
    width: 150px; /* Set a fixed width */
    height: 150px; /* Set a fixed height */
    object-fit: cover; /* Ensures the image fills the space without distortion */
    margin-bottom: 15px;
 
    filter: grayscale(100%);
    /* THE KEY PROPERTY FOR CIRCLES */
    border-radius: 50%; 
}
/* Ensure the parent container uses CSS Grid */
.people-grid {
    display: grid;
    /* Adjust the minimum width (e.g., 180px) to ensure 5 cards can fit side-by-side */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: center;
}

/* Optional: Styles for the cards themselves */
.person-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: white;
}

/* Footer */
.footer {
  background: var(--hopkins-blue);
  color: white;
  padding: 1rem;
  font-size: 0.85rem;
}

/* Scoped to the specific blog/news archive section only */

/* 1. Container for the entire post entry */
.blog-archive-section .post-row {
    display: flex;
    padding: 15px 30px; /* Space on the left/right sides of the entire row */
    align-items: flex-start;
}

/* 2. Lateral Date Column Styling (Fixed left side) */
.blog-archive-section .post-date-column {
    flex-basis: 120px; 
    flex-shrink: 0; 
    
    font-weight: bold;
    color: #6c757d; 
    font-size: 0.9em;
    
    /* Reduced margin-right to bring the date column closer to the content */
    padding-right: 10px; 
    margin-right: 10px; 
    
    border-right: 1px solid #ddd; 
    text-align: left;
    
    /* Ensure date text aligns vertically with the top of the content */
    padding-top: 5px; /* Add small top padding to align vertically with title */
}

/* 3. Content Column Styling (Right side: Title and Description) */
.blog-archive-section .post-content-column {
    flex-grow: 1; /* Takes all remaining width */
    /* text-align: center; <-- AVOIDING THIS as it makes all text look strange */
    /* Instead, we ensure the title/description block is cohesive */
}

/* 4. Title and Preview Styles */
.blog-archive-section .update-title {
    font-size: 1.3em;
    margin-top: 0; /* Ensures the title sits right at the top of the content column */
    margin-bottom: 5px; 
}

.blog-archive-section .update-title a {
    font-weight: bold; 
    text-decoration: none; 
    text-align: left; /* Keep text left-aligned for readability */
}

/* Ensure the description preview takes the necessary space and wraps */
.blog-archive-section .update-preview p {
    line-height: 1.4; /* Improves readability for multi-line text */
    margin-top: 0;
}

.row {
  display: flex;
  justify-content: center;  /* centers horizontally */
  align-items: center;      /* centers vertically (optional) */
  gap: 1rem;
  margin: 0 auto;           /* centers the row itself within its parent */
  max-width: 1000px;        /* optional: keeps it from stretching too wide */
}

.col {
  flex: 1;
  padding: 10px;
  text-align: center;       /* centers text inside each column */
}

@media (max-width: 600px) {
  .row {
    flex-direction: column; /* stacks columns on mobile */
  }
}

.col.left {
  text-align: left;
   flex: 0 0 60%; 
}
.col.right {
  text-align: right;
  flex: 0 0 40%;
}

/* Container that manages the two main columns */
.hierarchical-layout-container {
    display: flex;
    gap: 40px; /* Space between the PI column and the Team column */
    /* margin-top: 30px; */
    margin-left: 5%;
    margin-right: 5%;
}

/* Styling for the column titles (e.g., "Principal Investigator") */
.column-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

/* 1. PI Column (Left Side - Fixed width) */
.pi-column {
    flex-basis: 300px; /* Gives the PI a fixed width column */
    flex-shrink: 0; 
}

/* Ensure the PI card styling within its column */
.pi-column .person-card {
    margin: 0; /* Remove horizontal margin for clean alignment */
}

/* 2. Team Column (Right Side - Takes remaining space) */
.team-column {
    flex-grow: 1; /* Takes up all available horizontal space */
    
}

/* The standard grid (people-grid) now operates inside the team column */
.team-column .people-grid {
    display: grid;
    /* This will fit up to 3 cards in the remaining space of the column */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    text-align: center; /* Center the cards within the column */
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .hierarchical-layout-container {
        /* Stacks the PI and Team columns vertically on smaller screens */
        flex-direction: column; 
    }
    
    .pi-column {
        /* Allows PI column to take full width when stacked */
        flex-basis: auto; 
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee; /* Separator when stacked */
    }
    
    .team-column .people-grid {
        /* Allows 2 cards per row on smaller mobile views */
        
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
