body {
  font-family: 'Roboto', sans-serif; /* Modern font */
  margin: 0;
  background-color: #f9fafc; /* Light background for a clean look */
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #003366;
  color: white;
  padding: 1.5em 1em;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

header h1 {
  font-size: 2em;
  margin: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
}

nav ul li {
  display: inline-block;
  margin: 0 1em;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  transition: color 0.3s ease;
}

nav a.active, nav a:hover {
  color: #00bcd4; /* Accent color for hover */
}

main {
  padding: 2em;
  max-width: 1100px; /* Wider content area */
  margin: auto;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5em;
  background-color: #003366;
  color: white;
  font-size: 0.9em;
  margin-top: 2em;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1); /* Shadow for separation */
  max-width: 1100px; /* Match the width of the main content */
  margin-left: auto;
  margin-right: auto; /* Center the footer */
  border-radius: 10px; /* Optional: Add rounded corners for a modern look */
}

footer p {
  margin: 0;
}

.team {
  margin-top: 2em;
}

.team h2 {
  text-align: center;
  margin-bottom: 1em;
  font-size: 2em;
  color: #003366;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Two-column layout for members */
.members-container {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping to the next row */
  gap: 2em; /* Adds spacing between items */
  justify-content: center; /* Centers the columns */
}

.member {
  flex: 1 1 calc(50% - 2em); /* Each member takes 50% of the row minus spacing */
  max-width: 400px; /* Optional: Limit the width of each column */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2em;
  background: white; /* Card-like design */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.member img {
  width: 100%;
  height: 400px;        /* Set a fixed height (adjust as needed) */
  object-fit: cover;    /* Crop/scale image to fill while keeping aspect ratio */
  border-bottom: 1px solid #eee; /* Separator for the image */
}

.member h3 {
  font-size: 1.2em;
  margin: 0.5em 0;
  color: #003366;
}

.member p {
  font-size: 0.9em;
  color: #666;
  margin: 0.5em 0 1em;
}

.member .bio {
  max-height: 150px; /* Adjust height as needed */
  overflow-y: auto; /* Enables scrolling for long content */
  padding: 1em;
  border-top: 1px solid #eee;
  background-color: #f9fafc;
  text-align: left; /* Aligns text for better readability */
  font-size: 0.9em;
  color: #555;
}

.member ul {
  list-style: none; /* Removes bullets */
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1em;
}

.member ul li {
  margin: 0.5em 0;
}

.member ul li a {
  color: #00bcd4; /* Accent color */
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.member ul li a:hover {
  color: #007a8c; /* Darker accent on hover */
}

/* Center the section headers */
.current-members h2,
.former-members h2 {
  text-align: center;
  margin-bottom: 1.5em;
  font-size: 2em;
  font-weight: bold;
  color: #003366;
}

/* Projects Gallery */
.projects-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2em; /* Space between cards */
  justify-content: center; /* Center the gallery */
  margin-top: 2em;
}

.project-card {
  display: block;
  width: 250px; /* Fixed width for cards */
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

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

.project-info {
  padding: 1em;
  text-align: center;
}

.project-info h3 {
  font-size: 1.2em;
  color: #003366; /* Dark blue for headings */
  margin: 0.5em 0;
}

.project-info p {
  font-size: 0.9em;
  color: #666; /* Subtle gray for descriptions */
  margin: 0;
}

/* News Section */
.news {
  margin-top: 3em;
  padding: 2em 1em;
  background-color: #f9fafc; /* Light background for contrast */
}

.news h2 {
  text-align: center;
  font-size: 2em;
  color: #003366;
  margin-bottom: 1.5em;
}

.news-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2em; /* Space between cards */
  justify-content: center; /* Center the cards */
}

.news-card {
  display: block;
  width: 300px; /* Fixed width for cards */
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.news-card img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures the image fits nicely */
}

.news-content {
  padding: 1em;
}

.news-content h3 {
  font-size: 1.2em;
  color: #003366;
  margin-bottom: 0.5em;
}

.news-content p {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

/* Clinical Trials Section */
.clinical-trials-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em; /* Space between the image and cards */
  margin-top: 1.5em;
}

.clinical-trial-card img {
  width: 100%;
  max-width: 600px; /* Limit the image width */
  height: auto;
  border-radius: 10px; /* Rounded corners for the image */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.clinical-trial-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5em; /* Space between cards */
  width: 100%;
  max-width: 600px; /* Limit the width of the cards */
}

.clinical-trial-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 10px; /* Rounded corners */
  border: 1px solid #ddd;
  padding: 1em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clinical-trial-card-link:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
  background-color: #f9f9f9; /* Slight background change on hover */
}

.clinical-trial-card-content h3 {
  font-size: 1.2em;
  color: #003366;
  margin-bottom: 0.5em;
}

.clinical-trial-card-content p {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

.videos {
  text-align: center;
  padding: 50px 0;
  background-color: #f8f8f8;
}

.videos h2 {
  text-align: center;
  font-size: 2em;
  color: #003366;
  margin-bottom: 1.5em;
}

/* Center the video grid */
.videos .video-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Style each embedded video */
.videos .video-grid iframe {
  width: auto;
  height: auto;
  border-radius: 12px;
  border: aliceblue;
  transition: transform 0.3s ease;
}

/* Simple hover scale — no blur, no opacity */
.videos .video-grid iframe:hover {
  transform: scale(1.03);
}
