/* ── Reset & Base ───────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: #fdfdfd;
  color: #333;
}

/* ── Header / Hero ─────────────────────────────────── */
header {
  background-color: #161b22;
  padding: 2rem;
  margin: 0;
}

.title-bg {
  background: linear-gradient(rgba(22,27,34,0.72), rgba(22,27,34,0.56)),
              url('photos/image43.png') center/cover no-repeat;
  border-radius: 18px;
  padding: clamp(4rem, 18vw, 20rem) 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.title-bg h1 {
  color: #fff;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.subtitle {
  color: #f3f3f3;
  font-size: 1.25rem;
  font-weight: 300;
  margin-top: 1.75rem;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}

/* ── Navigation ────────────────────────────────────── */
nav {
  background: #222;
  padding: 0.5rem 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s, text-decoration 0.2s;
}

nav a:hover,
nav a:focus {
  text-decoration: underline;
  background: rgba(255,255,255,0.1);
  outline: none;
}

/* ── Sections ──────────────────────────────────────── */
section {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  background: rgba(253, 253, 253, 0.95);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ── Team Grid ─────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.member {
  background: rgba(243, 243, 243, 0.95);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.3s ease;
  background: #f3f3f3;
}

.member img:hover {
  transform: scale(1.1);
}

.member-name {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ── Scientific Vision List ────────────────────────── */
.vision-list {
  list-style: none;
  padding: 0;
}

.vision-list li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.vision-thumb {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  background: #f3f3f3;
}

.vision-text {
  flex: 1;
  text-align: left;
  display: block;
}

/* ── Video List ────────────────────────────────────── */
.video-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.video-item {
  background: #f7f7f7;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  transition: border-color 0.2s;
}

.video-item[open] {
  border-color: #bbb;
}

.video-item summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  list-style: none;
}

.video-item summary::-webkit-details-marker {
  display: none;
}

.video-item summary::before {
  content: "\25B6";
  font-size: 0.7rem;
  color: #666;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.video-item[open] summary::before {
  transform: rotate(90deg);
}

.video-item summary:hover {
  background: #efefef;
  border-radius: 6px;
}

.video-title {
  font-weight: 600;
}

.video-speaker {
  color: #666;
  font-weight: 300;
}

.video-item video {
  margin: 0.5rem 0 0;
  border-radius: 0 0 6px 6px;
  width: 100%;
  background: #000;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: #e5e5e5;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 600px) {
  .title-bg h1 {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  nav {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .vision-list li {
    flex-direction: column;
    text-align: center;
  }

  .vision-thumb {
    width: 96px;
    height: 96px;
  }

  .vision-text {
    text-align: center;
  }

  section {
    padding: 1.25rem;
    border-radius: 0;
    box-shadow: none;
  }
}
