/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: Arial, sans-serif;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* Navigation Bar */
.navbar {
  background-color: #C41230;  /* Scarlet red background */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: relative;
}

.navbar .logo-img {
  max-width: 100%;  /* Ensures the logo doesn't exceed the container */
  height: auto;     /* Maintains the aspect ratio of the image */
  max-height: 150px; /* Adjusts the max height to ensure it's not too tall */
}

/* Navigation Links (Desktop) */
.nav-links {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: white;  /* White text color */
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px;
  display: block;
}

.nav-links a:hover {
  color: #f5f5f5; /* Light gray on hover */
}

/* Mobile View (Hamburger menu and links hidden by default) */
@media (max-width: 875px) {
  .nav-links {
    display: none;               /* Hide links by default */
    position: absolute;          /* Position links absolutely below the navbar */
    top: 10px;                    /* Adjust this based on your navbar height */
    left: 0;
    width: 100%;
    background-color: #C41230;    /* Scarlet red background for dropdown */
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    opacity: 0;                   /* Links are invisible initially */
    transition: opacity 0.5s ease;  /* Smooth transition for opacity */
    pointer-events: none;         /* Prevent clicking when hidden */
  }

  /* Active state: when the hamburger is clicked */
  .nav-links.active {
    display: flex;
    opacity: 1;                   /* Show links */
    pointer-events: all;          /* Enable clicking when visible */
  }


  .hamburger {
    display: flex;                /* Ensure hamburger is visible */
    cursor: pointer;
    z-index: 2;                   /* Make sure it appears above links */
    flex-direction: column;       /* Stack the bars vertically */
    gap: 5px;                     /* Add space between bars */
  }

  .hamburger .bar {
    width: 30px;
    height: 4px;
    background-color: white;
    border-radius: 5px;
    transition: 0.3s;
  }

  /* Ensure the links stay white even in the active state */
  .nav-links.active a {
    color: white;
  }

  /* Ensure the links stay white when hovered, even in active state */
  .nav-links.active a:hover {
    color: #f5f5f5;
  }
}

/* Desktop View (Hamburger is hidden, links are always visible) */
@media (min-width: 875px) {
  .nav-links {
    display: flex;  /* Display links in a row for desktop */
    justify-content: space-between;
    align-items: center;
    width: auto;  /* Ensure links span across navbar */
    opacity: 1;  /* Make sure links are visible */
    position: static;  /* Remove absolute positioning */
    pointer-events: all;  /* Enable clicking by default */
  }

  .nav-links a {
    color: white;  /* White text for desktop links */
  }

  .nav-links a:hover {
    color: #f5f5f5; /* Light gray on hover */
  }

  .hamburger {
    display: none;  /* Hide the hamburger on desktop */
  }
}

















/* Global Link Styles */
a {
  color: #990000; /* Scarlet red */
  text-decoration: none; /* Removes the underline by default */
}

a:hover {
  color: #cc0000; /* Darker red for hover effect */
  text-decoration: underline; /* Adds underline on hover for better visibility */
}


/* Footer Links */
footer a {
  color: #990000; /* Scarlet red */
  text-decoration: none;
}

footer a:hover {
  color: #cc0000; /* Darker red on hover */
  text-decoration: underline;
}

/* Resetting some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;  /* Ensures footer stays at the bottom */
  height: 100%;
  margin: 0;
}

.content {
  flex: 1;  /* Allows content to grow and take the available space */
  padding: 20px;
  margin-top: 20px; /* To separate content from the hero section */
}




/* Hero Section (Big Picture) */
.hero {
  width: 100%;
  height: 100%; 

}

.hero-image img {
  width: 100%;
  height: 100%;
  /*object-fit: contain; /* Ensures the whole image is visible without cutting it off */
  object-position: center; /* Ensures the image is centered if it doesn't cover the entire space */
}



/* Lab Name Below the Image */
.lab-name {
  text-align: center;
  background-color: #fff; /* Optional: Add white background for text */
  padding: 20px 0; /* Space around the text */
  margin-top: -20px;  /* Removes the space between the image and the text */
}

.lab-name h1 {
  color: #990000; /* Scarlet red color for the lab name */
  font-size: 3em;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Optional: Add shadow to text for contrast */
}





/* News Section */
.news {
  padding: 40px 20px;
  background-color: #f5f5f5; /* Light gray background */
}

.news h2 {
  text-align: center;
  color: #990000; /* Scarlet red */
  font-size: 2.5em;
  margin-bottom: 30px;
}

.news-item {
  background-color: white;
  border: 1px solid #ddd; /* Light border around each news item */
  padding: 20px;
  margin-bottom: 20px; /* Space between news items */
  border-radius: 8px;  /* Rounded corners */
}

.news-item h3 {
  color: #333;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.news-item p {
  color: #666;
  font-size: 1.1em;
  line-height: 1.6;
}

.news-item a {
  color: #990000;
  text-decoration: none;
}

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



/* Mobile View Adjustments */
@media (max-width: 1169px) {

    /* Hero Section Adjustments for Mobile */
    .hero {
        height: auto; /* Set max height to take up 60% of the viewport height */
        
        margin-bottom: 10px; /* Adjust margin to reduce white space */
    }

    /* Lab name adjustments */
    .lab-name h1 {
        font-size: 2.2em; /* Smaller title size for mobile */
    }

    /* News Section Adjustments */
    .news {
        padding: 20px 10px; /* Reduced padding for less space */
        margin-top: 1px; /* Reduce space between sections */
    }

    /* Optional: Reduce spacing between the hero and news sections further */
    .news h2 {
        font-size: 2em;
    }
}


/* Footer Section */
footer {
  background-color: #C41230; /* Scarlet red background */
  color: white;              /* White text */
  padding: 20px 0;           /* Padding for vertical space */
  text-align: center;        /* Center content */
  width: 100%;               /* Full width */
  box-sizing: border-box;    /* Include padding in width */
  position: relative;        /* Ensure it stays at the bottom */
  margin-top: 20px;          /* Prevent collision with content */
}

footer p {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.6;
}

/* Social Media Links */
footer .social-media {
  margin-top: 15px;
}

footer .social-media a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-size: 1.2em;
}

footer .social-media a:hover {
  color: #cc0000;  /* Darker red on hover */
}

/* Ensuring the footer appears at the bottom of the page */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}


/* Mentorship Philosophy Styles */
.mentorship {
  padding: 40px 20px;
  margin-top: 30px; /* Adds space between sections */
}

.mentorship h2 {
  text-align: left;
  color: #990000; /* Scarlet red for the heading */
  font-size: 2.5em;
  margin-bottom: 20px;
}

.mentorship p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #333;
  text-align: justify; /* Justifies the text for better readability */
  margin-bottom: 20px;
}

/* Contact Styles */
.contact {
  padding: 40px 20px;
  margin-top: 30px; /* Adds space between sections */
}

.contact h2 {
  text-align: left;
  color: #990000; /* Scarlet red for the heading */
  font-size: 2.5em;
  margin-bottom: 20px;
}

.contact p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #333;
  text-align: justify; /* Justifies the text for better readability */
  margin-bottom: 20px;
}

/* Publications Styles */
.publications {
  padding: 40px 20px;
  margin-top: 30px; /* Adds space between sections */
}

.publications h2 {
  text-align: left;
  color: #990000; /* Scarlet red for the heading */
  font-size: 2.5em;
  margin-bottom: 20px;
}

.publications h3 {
  text-align: left;
  color: #990000; /* Scarlet red for the heading */
  font-size: 1.6em;
  margin-bottom: 20px;
}


.publications p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #333;
  text-align: justify; /* Justifies the text for better readability */
  margin-bottom: 20px;
}


/* Research Section Styles */
.research {
    padding: 40px 20px;
}

/* Research Section Layout */
.research-section {
    display: flex;
    flex-direction: column;  /* Change flex direction to column */
    align-items: center;     /* Center the content */
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Image Container */
.research-img {
    flex: 1;
    display: flex;              /* Enable flexbox */
    justify-content: center;    /* Center horizontally */
    align-items: center;        /* Center vertically */
    padding-right: 20px;
    width: 100%;                 /* Ensure it takes full width of its container */
    height: auto;                /* Maintain the aspect ratio of the image */
    margin-bottom: 20px;         /* Space at the bottom of the image */
}

.research-img img {
    max-width: 100%;             /* Ensure the image doesn't overflow */
    height: auto;                /* Maintain aspect ratio */
    object-fit: cover;           /* Cover the container without distorting the image */
    border-radius: 8px;          /* Optional: for rounded corners */
}

/* Research Text */
.research-text {
    text-align: center; /* Center-align the text */
    width: 100%; /* Full width */
    padding: 0 20px;
}

.research-text h2 {
    font-size: 2.5em;
    color: #990000; /* Scarlet red */
    margin-bottom: 10px;
}

.research-text p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

/* Mobile View Adjustments */
@media (max-width: 768px) {

    /* Stack content on smaller screens */
    .research-section {
        flex-direction: column;   /* Stack the image and text vertically */
        align-items: center;      /* Center everything */
    }

    .research-img {
        width: 100%;               /* Ensure the image container takes full width */
        padding-right: 0;          /* Remove right padding on mobile */
        margin-bottom: 20px;       /* Add margin between image and text */
    }

    .research-img img {
        width: 100%;               /* Ensure the image takes up full width */
        max-width: 100%;           /* Prevent it from exceeding the container width */
    }
}


/* Members Section */
.members {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.members h1 {
    font-size: 2.5em;
    color: #990000; /* Scarlet red */
    margin-bottom: 40px;
}



/* Member Card Layout: Change to single column with image on top */
.member-card {
  display: flex;
  flex-direction: column; /* Ensure the content stacks vertically (image on top) */
  align-items: center;    /* Center the content horizontally */
  margin-bottom: 40px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Member Image */
.member-img {
  width: 100%;
  max-width: 300px; /* Limit max width of the image */
  margin-bottom: 20px; /* Add space between the image and the text */
}

.member-img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Member Info */
.member-info {
  text-align: center; /* Center text for a cleaner look */
  padding: 10px;
  width: 100%; /* Make the text container span the full width */
}

.member-info h2 {
  font-size: 2em;
  color: #990000; /* Scarlet red */
  margin-bottom: 10px;
}

.member-info .title {
  font-size: 1.5em;
  color: #666;
  margin-bottom: 10px;
}

.member-info .bio {
  font-size: 1em;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}



/* CV Box Styling */
.cv-box {
    display: inline-block;
    background-color: #C41230; /* red */
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
}


.cv-link {
    color: white; 
    text-decoration: none;
    font-weight: bold;
}

.cv-link:hover {
    color: white;
    text-decoration: underline;
}


