html {
  scroll-padding-top: 80px; /* match or slightly exceed your navbar height */
}


body {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  padding-top: 70px;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.navbar {
  position: fixed;         /* changed from sticky */
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: #f7941d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 3000;      
}

/* Team dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  color: black;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f7941d;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 3001;
  min-width: 160px;
  border-radius: 4px;
}

.dropdown-menu a {
  color: black;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #ffa733;
}


@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}


.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Important: match section height */
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Adjust opacity here */
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  padding: 10px;
}

.hero-text h1 {
  font-size: 4rem; /* Bigger title */
  margin: 0;
}

.hero-text h2 {
  font-size: 2rem; /* Subtitle */
  margin: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-left: 100px;
  height: auto;
}

.logo {
  /*height: 60px;*/
  margin-right: 10px;
  max-height: 100px;
}

.lab-title h2 {
  margin: 0;
}

.nav-links a {
  margin: 0 10px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 20px;
}

/* About */
.about {
  background: orange;
  padding: 40px 0;
}

.about-container {
  display: flex;
  max-width: 1100px;
  margin: auto;
  align-items: stretch;
  height: 480px; /* controls total height */
}

.about-text-box {
  background-color: #2f4858; /* light gray-blue */
  color: black;
  padding: 30px;
  border-radius: 8px 0 0 8px;
  flex: 1;
  overflow: auto; /* just in case content overflows */
}

.about-text-box h2 {
  font-size: 48px;
  font-weight: bold;
  margin: 0 0 10px;
}

.about-text-box h3 {
  font-size: 24px;
  margin: 0;
}

.about-text-box p {
  margin: 20px 0;
  font-size: 16px;
}

.social-icons span {
  font-size: 24px;
  margin-right: 10px;
}

.button-red {
  display: inline-block;
  background: #d00000;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  margin-top: 20px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
}


.about-image {
  width: 40%;
  height: 100%; /* match text box height */
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop nicely */
  border-radius: 0 8px 8px 0;
}


/* Logos */
.collaborators {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: white;
  padding: 20px;
  max-width: 100%;
  overflow-x: hidden;
}

.collaborators img {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  flex: 1 1 100px;
}


/* News */
.news {
  background-color: #2f4858;
  padding: 80px 20px;
  text-align: center;
}

.news h2 {
  font-size: 60px;
  color: white;
  margin-bottom: 40px;
  margin-top: -5px;
}

.news-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.news-card {
  background-color: gray;
  color: white;
  padding: 20px;
  width: 220px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.news-card h3 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 18px;
  line-height: 1.4;
}

/* Research */
.research {
  background-color: #d6792d;
  padding: 80px 60px;
}

.research-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  flex-wrap: wrap;
}

.research-title {
  flex: 1;
}

.research-title h2 {
  font-size: 64px;
  font-weight: 800;
  color: red;
  line-height: 1.1;
}

.research-content {
  flex: 2;
  color: red;
  font-size: 20px;
  line-height: 1.6;
}

.research-content p {
  margin-bottom: 30px;
}

.research-button {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid red;
  color: red;
  text-decoration: none;
  font-size: 20px;
  border-radius: 4px;
  transition: 0.3s ease;
}

.research-button:hover {
  background-color: red;
  color: white;
}

/* Team */
.team-section {
  background-color: #3d3d3d;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.team-heading {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 40px;
  margin-top: -30px;
}

.team-lead {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 60px;
  height: 280px; /* Make room for both elements */
}

.team-lead img {
  position: relative;
  right: -50px; 
  width: 240px;
  border-radius: 4px;
  z-index: 1;
}

.team-lead-text {
  position: relative;
  top: 40px;
  right: -30px; /* Adjust this to control overlap amount */
  background: white;
  color: #f7941d;
  padding: 20px;
  border-radius: 10px;
  width: 350px;
  height: 200px;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2;
}

.team-divider {
  border-top: 2px solid white;
  width: 80%;
  margin: 40px auto;
  margin-bottom: 70px;
}

.team-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.team-member {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 500px; /* fixed width for consistency */
}

.team-member img {
  width: 220px;
  height: 250px; /* fix height to make all images same size */
  object-fit: cover; /* crop and center image nicely */
  border-radius: 6px;
  margin-right: 10px;
}

.member-text {
  position: relative;
  left: -30px;
  background: white;
  color: #001f3f;
  padding: 15px;
  border-radius: 10px;
  text-align: left;
  font-size: 16px;
  top: 25px;
  flex: 1; /* take remaining space */
  height: 200px; /* match image height */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.member-text h3.orange {
  color: #f7941d;
  margin: 0 0 5px;
}

.alumni-button-container {
  margin-top: 40px;
  text-align: center;
}

.alumni-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #f7941d;
  color: #f7941d;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.alumni-button:hover {
  background-color: #f7941d;
  color: white;
}

.alumni-section {
  background: black;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.alumni-heading {
  font-size: 48px;
  margin-bottom: 40px;
  font-weight: 800;
}

.alumni-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.alumni-card {
  background: white;
  color: black;
  width: 265px;
  height: 580px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: left;
}

.alumni-card img {
  width: 265px;
  height: 315px;
  display: block;
}

.alumni-info {
  background-color: #9b5d25; /* same as your screenshot */
  color: white;
  padding: 20px;
}

.alumni-info .alumni-role {
  font-size: 16px;
  margin: 0 0 5px;
}

.alumni-info h3 {
  font-size: 22px;
  margin: 0 0 10px;
  font-weight: bold;
}

.alumni-info p {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}


/* Publications CTA */
.publications{
  display: flex;
  justify-content: center; /* centers horizontally */
  align-items: center;     /* centers vertically if height is set */
  height: 200px; 
}

.publications-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  text-align: left;
  gap: 40px;
  flex-wrap: wrap;
}

.publications-section {
  background-color: #fff8f0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
}


.publications-header-text {
  font-size: 80px;
  font-weight: bold;
  color: #000;
}

.publications-list{
  padding-left: 40px;         /* indent whole list */
  font-size: 18px;
  color: #000;
}

.publications-list li {
  margin-bottom: 20px;
}

/* Contact */
.contact {
  background: #42389d;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 60px 30px;
  flex-wrap: wrap;
}

.contact-info {
  max-width: 300px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-family: inherit;
  font-size: 16px;
  width: 100%;
}

.contact-form button {
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
}

* {
  box-sizing: border-box;
}


/* ================================
   Mobile Responsive Adjustments
   ================================ */
@media (max-width: 768px) {
  .logo-container {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .about-container {
    flex-direction: column;
    height: auto;
  }
  
  .about-text-box,
  .about-image {
    width: 100%;
    border-radius: 0;
  }
  
  .about-image img {
    border-radius: 0;
    height: 300px;
  }
  
  .team-lead {
    flex-direction: column;
    align-items: center;
    height: auto;
  }
  
  .team-lead img,
  .team-lead-text {
    position: static;
    width: 90%;
    height: auto;
    margin: 10px 0;
  }
  
  .team-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .team-member {
    flex-direction: column;
    width: 90%;
    align-items: center;
    text-align: center;
  }
  
  .team-member img {
    margin-right: 0;
    width: 100%;
    height: auto;
    max-width: 300px;
  }
  
  .member-text {
    position: static;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    margin-top: 15px;
    align-items: center;
  }
  
  .research-container {
    flex-direction: column;
    align-items: center;
  }
  
  .research-title h2 {
    font-size: 42px;
    text-align: center;
  }
  
  .research-content {
    font-size: 16px;
  }
  
  .news-container {
    flex-direction: column;
    align-items: center;
  }
  
  .news-card {
    width: 90%;
    height: auto;
  }
  
  .contact {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-info,
  .contact-form {
    width: 100%;
  }
  
  .contact-form {
    margin-top: 20px;
  }

  #scrollToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    font-size: 24px;
    background-color: #f7941d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
  }
  
  #scrollToTop:hover {
    background-color: #c86e00;
  }
}

/* Hamburger menu styles */
.hamburger {
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #2f4858;
    padding-top: 50px; /* makes room for the navbar */
    padding-left: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    z-index: 2000;
    gap: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 5px 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #2f4858;
    width: 100%;
  }

  .dropdown-menu a {
    color: white;
  }

  .dropdown-menu a:hover {
    background-color: transparent;
  }

  /* Arrow icon styles */
  .arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
    flex-direction: column;
  }
  

  /* Rotate arrow when dropdown is open */
  .dropdown.open .arrow-icon {
    transform: rotate(180deg); /* flipped arrow */
  }

  /* Hamburger base style */
  .hamburger {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 10px;
  }

  .hamburger span:nth-child(3) {
    bottom: 0;
  }

  /* Animation when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 10px;
  }

  .publications-header-text {
  font-size: 40px;
  text-align: center;
  }

  .publications-list {
    padding-left: 20px;
    font-size: 16px;
  }


}