body {
  margin: 0;
  padding: 1rem;
  background: #e2c491;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
  margin: 0 auto;
  background: #faefdd; /* light cream or beige */
  border: 1px solid #2c2622;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding-bottom: 2rem;
}

/* Stretch header full width */
header {
  background: #2c2622;
  color: #ffffff;
  padding: 0.1rem 0;
  width: 100%;
  margin: 0;

}

/* Header layout */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.0rem;
  margin: 0 auto;
  max-width: 1200px;
}

header h1 {
  font-size: 1.0rem;
  margin: 0;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  display: flex;
  align-items: center;
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  gap: 0.4rem;
}

nav a .icon {
  height: 20px;
  width: 20px;
  filter: invert(100%);
}

/* About section */
.about {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1000px;
  align-items: center;
  padding: 1.5rem;
}

.headshot {
  border: 2px solid #2c2622;
  border-radius: 80%;       
  width: 220px;             
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-right: 2rem;        
}

.links a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #265772;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* Projects section */
#research,
#projects {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;     /* Equal top and bottom padding */
  text-align: center;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 250px;
  padding: 1rem;
  text-decoration: none;
  color: black;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0.5rem 0;
}

.project-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

.project-description {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}

.project-card h3 {
  font-size: 1.1rem;
  margin: 0;
}


.about h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #2c2622; /* darker brown */
}

#research h2,
#projects h2 {
  font-size: 2.3rem;
  margin: 0rem 0 2.5rem;  /* Less space above and below the title */
  color: #2c2622;
}

.section-divider {
  border: none;
  border-top: 2px solid #2c2622;

  width: calc(100% + 4rem);   /* wider than container */
  max-width: 80vw;            /* cap width on small screens */

  /* Centering */
  margin-top: 2rem;
  margin-bottom: 2rem;
  margin-left: 50%;
  margin-right: 50%;

  transform: translateX(-50%);

  box-sizing: content-box;
}




.project-card.wide {
  grid-column: span 2;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.project-card.wide video {
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-card.wide ul.project-details {
  padding-left: 1.2rem;
  list-style-type: "📌 ";
  margin: 1rem 0;
}

.project-card.wide ul {
  margin: 0.5rem 0 1.5rem;
}

.project-card.wide p {
  line-height: 1.6;
}

