body {
    display: flex;
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: white;
    color: #333;
    height: 100vh;
    overflow-y: auto; /* Allow natural page scrolling */
    font-size: 20px; /* Increase base font size */
}

.sidebar {
    position: fixed;
    width: 260px; /* Increase the width of the sidebar */
    height: 100%;
    background-color: white;
    padding: 50px 25px; /* Increase padding for more space */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
    overflow-y: auto;
}

.sidebar h2 {
    text-align: center;
    font-size: 32px; /* Increase the size of the lab name */
    margin-bottom: 35px; /* Increase the margin below the lab name */
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.sidebar nav ul li {
    margin: 35px 0; /* Increase space between menu items */
}

.sidebar nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 24px; /* Increase font size of the menu items */
    transition: color 0.3s ease;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
    color: #000;
    background-color: #e0eaff; /* Highlight the active tab */
    padding: 18px 25px; /* Increase padding for more space */
    border-radius: 10px; /* Slightly increase border radius */
}

.content {
    margin-left: 300px; /* Adjust margin-left to match the increased sidebar width */
    padding: 60px;
    max-width: 3000px; /* Keep the content width the same */
    z-index: 1;
    position: relative;
    min-height: 100vh; /* Ensure full viewport height */
    box-sizing: border-box;
    font-size: 22px; /* Increase the general text size in content */
    padding-bottom: 100px; /* 👈 Add this */
    text-align: justify;
}


section {
    margin-bottom: 60px;
}

section h1 {
    font-size: 36px; /* Increase the size of section headings */
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

p {
    line-height: 1.8; /* Increase line height for better readability */
    margin-bottom: 20px;
}

#game-of-life {
    margin-top: 30px;
    text-align: center;
}

#game-of-life-canvas {
    border: 1px solid #ccc;
    width: 100%;
    max-width: 600px;
    height: 400px;
    background-color: #f0f0f0;
    margin: 0 auto;
}

.photo-collage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Adjusted min-width */
    gap: 15px; /* Increased gap slightly for better spacing */
    padding: 20px;
}

.photo-collage img {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit the height of photos */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#research-image {
    width: 100%;
    max-width: 1200px;           /* Larger desktop display */
    height: auto;                /* Maintain aspect ratio */
    display: block;
    margin: 50px auto;           /* More space around */
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.publication-list {
  padding-left: 20px;
  font-size: 20px;
  list-style-position: outside;
}

.publication-list li {
  margin-bottom: 30px;
}

.pub-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.pub-text {
  flex: 1;
  line-height: 1.7;
}

.pub-text a {
  color: #3366cc;
  text-decoration: none;
  font-weight: bold;
}

.pub-text a:hover {
  text-decoration: underline;
}

.pub-image {
  width: 220px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .pub-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pub-image {
    width: 100%;
    max-width: 300px;
    margin-top: 15px;
  }

  .pub-text {
    width: 100%;
  }
}

#publications {
  padding-bottom: 100px;
}

.hero-container {
  width: 100%;
  position: relative;
  z-index: 0;
}




.hero-container {
  position: relative;
  width: 100%;
  margin-left: 260px; /* Push it to the right of the sidebar */
  z-index: 1;
}


.photo-research img {
  width: 100%;
  height: auto; /* preserves aspect ratio */
  border-radius: 10px;
  max-height: 600px;
  object-fit: contain; /* or remove if not needed */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.image-text-row {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.image-text-row img {
  width: 40%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.text-content {
  flex: 1;
  font-size: 20px;
  text-align: justify;
}
