/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f7f7f7;
}

a {
  color: #1a75cf;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.header-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.site-title-block {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-subtitle {
  font-size: 0.9rem;
  color: #666;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: #333;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

nav a.active {
  font-weight: 600;
  border-bottom: 2px solid #1a5d2f;
}

/* Hero / banner */
.hero {
  position: relative;
  min-height: 30vh;                 /* height of header */
  display: flex;
  align-items: center;
  justify-content: center;

  background-image:
    linear-gradient(
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.45)
    ),
    url("assets/img/Mito microscope.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.08em;
  margin: 0;
}


/* Main container */
.container {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  background-color: #ffffff;
}

/* Sections */
.section {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* Two-column layout */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2rem;
}

/* Sidebar links */
.sidebar-links ul {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 0.25rem;
}

/* People grid */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
}

.person-card img {
  width: 100%;
  height: auto;
  display: block;
}

.person-card h3 {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.person-card p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Simple text blocks */
.text-block {
  max-width: 720px;
}

/* Projects layout */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
/* News images */
.news-image{
  max-width: 420px;     /* adjust: 320–500px */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 1rem 0;   /* spacing below image */
}


.project img {
  width: 100%;
  height: auto;
}

/* YouTube embeds */
.video-embed {
  margin-bottom: 1.5rem;
}

.video-embed iframe {
  width: 100%;
  height: 360px;
  border: none;
}

/* Footer */
footer {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .two-column,
  .project {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.4rem;
    letter-spacing: 0.2em;
  }
}

/* --- TEMP DEBUG: people photos --- */
.person-card img{
  display: block;
  width: 200px;
  height: auto;
 
}

/* Support page hero background */
.page-support .hero{
  background-image:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("assets/img/Association-Support small2.jpg");
}
/* Publications page hero background */
.page-publications .hero{
  background-image:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("assets/img/Publications3.jpg");
}
/* Uniform people photos */
.person-card img{
  width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 12px;
  display: block;
  margin: 0 auto 12px;
}

.pub-list{
  list-style: none;
  padding-left: 0;
}

.pub-list li{
  margin: 10px 0;
}

/* Gallery grid */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-item{
  margin: 0;
}

.gallery-item img{
  width: 100%;
  aspect-ratio: 4 / 3;    /* consistent thumbnails */
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.gallery-item figcaption{
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.4rem;
  text-align: center;
}
