/* Global Styles */
body {
    font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Cloud Header Section */
.hero {
    background: url('images/banner7.png') no-repeat center center;
    background-size: cover;
    padding: 50px 15px;
    text-align: center;
    color: #000;
    border-bottom: 1px solid #3498db;
}

.hero h1 {
    font-size: 2.rem;
    margin: 5px 0;
    color: white ;
}


/* Top Navigation Bar */
nav {
    background: linear-gradient(to right, #5fc9f3, #3498db);
    padding: 12px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 0 0 10px 10px;
}

nav a {
    color: black;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 16px;
}

nav a:hover {
    text-decoration: underline;
}

/* Banner Image */
.banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Section Base Style */
section {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

/* Welcome Section */
.welcome-section {
    width: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 40px 0;
}

.welcome-text p {
    text-align: justify;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    max-width: 1100px;
    margin: auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Welcome Text */
.welcome-text {
    flex: 1;
    margin-right: 40px;
}

/* Contact Box */
.contact-box {
    width: 350px;
    min-width: 300px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-box h3 {
    margin-top: 20px;
    font-size: 1.2rem;
}

.contact-box a {
    color: #005f99;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Contact Image */
.contact-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ccc;
    display: block;
    margin-bottom: 1px;
}

/* Bottom Navigation */
.bottom-nav {
    background: linear-gradient(to right, #5fc9f3, #3498db);
    padding: 12px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 10px 10px 0 0;
    margin-top: 40px;
}

.bottom-nav a {
    color: black;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 16px;
}

.bottom-nav a:hover {
    text-decoration: underline;
}

/* Publications Section */
.publications-section {
    background: white;
    padding: 40px 0;
    width: 100vw;  /* Full screen width */
    box-sizing: border-box;
    display: none; /* toggled via JS */
}

.publications-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}


.publications-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.publications-section h3,
.publications-section h4 {
    margin-top: 30px;
    font-size: 1.4rem;
}

.publications-section a {
    color: #005f99;
    text-decoration: underline;
}

.publications-section a:hover {
    text-decoration: none;
}

.publications-section p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.publications-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

<!-- Add or update the following CSS in style.css -->

<style>
  /* Research Section – Mirror of Publications Section */
  .research-section {
    background: white;
    background-color: #fff;   /* ensure the section wrapper is white */
    padding: 40px 0;
    width: 100vw;  /* Full screen width */
    box-sizing: border-box;
    display: none; /* toggled via JS */
  }

  .research-content {
    background-color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
  }

  .research-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .research-section h3,
  .research-section h4 {
    margin-top: 30px;
    font-size: 1.4rem;
  }

  .research-section p {
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .research-topic {
    margin-bottom: 50px;
  }

  .research-topic h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .research-topic p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .research-gallery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: center;
  }

  .research-gallery img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
  }

  .research-gallery figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .research-gallery figcaption {
    font-size: 0.9rem;
    color: black ;
    margin-top: 8px;
    text-align: center;
  }

  .side-by-side {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .side-by-side figure {
    flex: 1 1 45%;
    max-width: 45%;
    text-align: center;
  }

  .side-by-side img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  /* ---------------------------------------------------------------- */

  .research-intro {
    text-align: center;
    margin-bottom: 1rem;
    color: black ;
  }

  .research-filter {
    text-align: center;
    margin: 1rem 0;
  }

  .filter-button {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border: none;
    background-color: #e0e0e0;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
  }

  .filter-button.active,
  .filter-button:hover {
    background-color: #333;
    color: #fff;
  }

  .research-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    color: black ;
  }

  /* Hydrogel group container: remove card styling so it blends into page */
  #hydrogel-group {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: 6fr 3fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Title aligned left */
  .group-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    grid-column: 1 / -1;
  }

  /* Strip out individual figure cards inside hydrogel group */
  #hydrogel-group .group-item {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Ensure each hydrogel image fills its cell */
  #hydrogel-group .group-item img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
  }

  /* Cap only the first hydrogel image if needed */
  #hydrogel-group .group-item:first-child img {
    max-width: 800px;  /* adjust as desired */
    width: 100%;
  }

  /* All other research-gallery images retain their card look */
  .research-item img {
    width: 100%;
    height: auto;
    color: black ;
  }

  .research-item {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    overflow: hidden;
    color: black ;
  }


/* Make the entire research panel and its inner container pure white */
.research-section,
.research-content {
  background-color: #fff !important;
}

/* Remove the “card” look around every item */
.research-item,
#hydrogel-group .group-item,
.research-gallery figure {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure the gallery itself has no padding or border */
.research-gallery {
  background: transparent !important;
  padding: 0 !important;
  gap: 1rem;
}

/* Remove any residual border/shadow around images */
.research-item img,
#hydrogel-group .group-item img,
.research-gallery img {
  box-shadow: none !important;
  border: none !important;
  background: transparent;
  width: 100%;
  height: auto;
  display: block;
}

/* Reset page edges to white */
html, body {
  margin: 0;
  padding: 0;
  background-color: #fff;
}

/* Default tab color */
.filter-button {
  background-color: #add8e6;   /* light blue */
  color: #333;                 /* dark text for readability */
}

/* Active & hover state */
.filter-button.active,
.filter-button:hover {
  background-color: #1e90ff;   /* dodger blue (darker) */
  color: #fff;                 /* white text */
}

/* Only shrink the new hydrogel figures */
.small-figure img {
  max-width: 60%;   /* adjust percentage as needed */
  height: auto;
  margin: 0 auto;   /* center the image */
  display: block;
}

.small-figure figcaption {
  text-align: center;
  font-size: 0.9em;
  margin-top: 0.5em;
}

/* Figure captions: left description + right reference */
.research-item figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.research-item .caption-text {
  flex: 1;
  min-width: 0; /* allows text to truncate/wrap nicely */
}

.research-item .caption-ref {
  font-style: italic;
  white-space: nowrap; /* keeps the reference on one line */
  opacity: 0.85;
  font-size: 0.95em;
}

/* Optional: on small screens, drop the reference to the next line for readability */
@media (max-width: 600px) {
  .research-item figcaption {
    flex-wrap: wrap;
  }
  .research-item .caption-ref {
    margin-left: auto; /* still right-aligned on its own line */
  }
}


</style>




