html, body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
}

/* Video background */
video#heroVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Hero text if needed */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 50px;
}

.hero-content .intro-text {
  max-width: 800px;
  margin: 100px auto 0;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 20px;
}

.nowrap {
  white-space: nowrap;
}

/* NAV styling */
nav {
  position: fixed;
  top: 30px;
  left: 1000px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 10px 20px;
  backdrop-filter: blur(5px);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #07dcd18f;
  transition: width 0.3s;
}

nav a:hover {
  color: #0adae9c4;
}

nav a:hover::after {
  width: 100%;
}

/* Team description (People page) */
.team-description {
  max-width: 900px;
  margin: 0 auto 80px;
  line-height: 1.8;
  font-size: 1.2rem;
  color: #ccc;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns */
  gap: 20px;
  justify-items: center;
  margin-top: 20px;
}

.students-grid > .student:nth-child(n+6) {
  grid-column: span 1; /* each takes one column */
}

@media (max-width: 1000px) {
  .students-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* === Publications page === */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
}

.pub-item {
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid #00bfa5;
  border-radius: 12px;
  padding: 20px 30px;
  position: relative;
  transition: transform 0.2s;
}

.pub-item:hover {
  transform: translateY(-5px);
}

.pub-item .journal {
  font-style: italic;
  color: #aaa;
  margin-bottom: 8px;
}

.pub-item .authors {
  font-weight: 600;
}

.pub-item .title {
  font-size: 1.1rem;
  margin: 5px 0;
}

.pub-item .year {
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-weight: bold;
  color: #00bfa5;
}

.pub-item a {
  display: inline-block;
  margin-top: 10px;
  color: #00bfa5;
  text-decoration: none;
}

.pub-item a:hover {
  text-decoration: underline;
}

/* === Contact block === */
.contact-bottom {
  margin-top: 150px; /* extra space above */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
  text-align: left;
}

.contact-left {
  flex: 1;
  min-width: 300px;
}

.contact-left img {
  width: 700px;
  max-width: 100%;  /* ✅ ensures it won't overflow on very small screens */
  margin-bottom: 20px;
}


.contact-right {
  flex: 1;
  min-width: 300px;
}

.contact-right p {
  font-size: 1.1rem;
  margin: 10px 0;
}

.contact-right p strong {
  display: block;
  margin-bottom: 5px;
}

@media (max-width: 800px) {
  .contact-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-left,
  .contact-right {
    text-align: center;
  }
}
.member-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.member-links a {
  display: inline-block;
  width: 50px;    /* slightly bigger, adjust as needed */
  height: 50px;
}

.member-links a img {
  width: auto !important;    /* ✅ force to ignore global img rules */
  height: 60% !important;   /* ✅ ensure it fills container vertically */
  max-width: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.member-links a img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}