/* --- 1. VARIABLES & BASICS --- */
:root {
  /* Lab Identity Colors */
  --lab-primary: #1D546D;    /* Deep Blue/Grey */
  --lab-accent: #5F9598;     /* Teal/Green accent */
  --lab-light: #F8F9FA;      /* Light background */
  --text-main: #333333;
  --text-muted: #6c757d;
  
  /* Spacing */
  --card-radius: 8px;
  --transition-speed: 0.3s;
}
.navbar-brand {
  font-size: 1.8rem;
  letter-spacing: 1px;
}
.navbar {
  background-color: var(--lab-primary) !important;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-main);
}

/* Make headings pop slightly more */
h1, h2, h3 {
  color: var(--lab-primary);
  font-weight: 700;
}

/* --- 2. HERO SECTION (For Homepage) --- */
/* Use this wrapper on your index.qmd */
.hero-banner {
  background-image: linear-gradient(rgba(44, 62, 80, 0.5), rgba(44, 62, 80, 0.5)), url("images/macsima-image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 4rem 2rem;
  border-radius: var(--card-radius);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.hero-banner h1 {
  color: white;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-banner p {
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

.hero-btn {
  display: inline-block;
  background-color: var(--lab-accent);
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background var(--transition-speed);
}

.hero-btn:hover {
  background-color: #149c82; /* Slightly darker teal */
  color: white;
  text-decoration: none;
}

/* --- 3. TEAM MEMBERS GRID --- */
/* A grid layout that auto-adjusts for mobile/desktop */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Individual Member Card */
.member-card {
  position: relative;
  border: 1px solid #e0e0e0;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  background: white;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  border-color: var(--lab-accent);
}

.member-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--lab-light);
}

.member-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0.5rem 0;
  color: var(--lab-primary);
}

.member-name a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

.member-name a:hover {
  color: inherit;
  text-decoration: none;
}

.member-role {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.card-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center; /* Center them */
  gap: 15px;               /* Space between icons */
}

.card-icons a {
  color: var(--text-muted); /* Start with grey */
  font-size: 1.5rem;        /* Make them readable */
  transition: color 0.3s ease;
  text-decoration: none;    /* Remove any underlines */
}

.card-icons a:hover {
  color: var(--lab-accent); /* Turn teal on hover */
}

/* --- 4. PUBLICATION LIST --- */
/* Clean styling for lists of papers */
/* The Container for a single year group */
.pub-year-group {
  margin-bottom: 2.5rem;
}

/* The Year Header */
.pub-year-header {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lab-primary);
  border-bottom: 2px solid var(--lab-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

/* Optional: Add a small icon or decoration before the year */
.pub-year-header::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--lab-accent);
  margin-right: 10px;
  border-radius: 50%;
}

/* The List Style (Refining previous suggestion) */
ul.pub-list {
  list-style: none; /* Remove default bullets */
  padding-left: 1rem;
}

ul.pub-list li {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem; /* Space for custom bullet/bar */
}

/* Add a vertical bar to each paper for a "timeline" feel */
ul.pub-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  background-color: #e9ecef; /* Light grey bar */
  border-radius: 3px;
}

/* Highlight the bar on hover */
ul.pub-list li:hover::before {
  background-color: var(--lab-accent);
}
