* { 
  box-sizing: border-box; 
}
body, h1, h2, p, ul { 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}
body:not(.home) .content {
  text-align: left;
  padding-left: 140px;
  padding-right: 20px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;     
  top: 0;
  z-index: 9999;        
  isolation: isolate;   
  padding: 15px 30px;
  background-color:#2874A6;
  flex-wrap: wrap;   /* allow wrapping if screen is small */
}

.content h1 {
  font-family: 'Georgia', cursive;
  font-size: 36px;
  color: #2874A6;
  margin-bottom: 20px;
}

.content h2 {
  font-size: 24px;
  color: #2874A6;   /* <-- your required blue */
  margin-top: 30px;
  margin-bottom: 15px;
}

.person {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
}

.details {
  max-width: 600px;
}


/* Logo + lab name */
.logo-container { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}
.logo-container img { 
  height: 50px; 
  width: auto; 
}
.lab-name { 
  font-size: 1.5rem; 
  font-weight: bold; 
  color: white; 
}

/* Navigation */
nav { margin-left: auto; }
nav ul { 
  list-style: none; 
  display: flex; 
  flex-wrap: wrap;  /* wrap items if no space */
  justify-content: center;
  gap: 20px; 
  margin: 0;
  padding: 0;
}
nav ul li { flex: 0 1 auto; }
nav ul li a {
  display: inline-block;
  padding: 6px 8px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}
nav ul li a:hover { color: #00c8ff; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  background-color: white;
  color: black;
  margin-top: 0;
}
.hero-logo {
  display: block;
  margin: 1px auto 20px auto;
  width: 90%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Poster Gallery (Simplified: no zoom, just image + link) */
.poster-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-items: center;
  margin: 30px 0;
  padding: 0;
}

.poster-item {
  text-align: center;
}

.poster-item img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*
.poster-item img:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}
*/
/* Playcard Effect for Poster Items */
.poster-item {
  text-align: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect - lift the card */
.poster-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* SVG link under image */
.poster-item a {
  display: inline-block;
  margin-top: 10px;
  color: #2874A6;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.poster-item a:hover {
  color: #00c8ff;
}


/* Content */
.content { 
  font-family: 'Georgia', cursive;
  padding: 40px 20px; 
  text-align: center; 
}


/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #2874A6;
  color: #ecf0f1;
  margin-top: 30px;
}

/* ------------------------- */
/* Responsive: tablets & mobiles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  /* Mobile view */

  /* By default, align left */
  body:not(.home) .content {
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Keep index (home) page centered */
  body.home .content {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }
  .logo-container {
    justify-content: center;
    width: 100%;
  }

  nav ul {
    justify-content: flex-start;
    gap: 10px;
  }

  nav ul li a {
    font-size: 0.9rem;
    padding: 6px 8px;
  }

  /* Responsive: single column on mobile */
  .poster-gallery {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 10px;
  }
  .people-grid {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }
  .person {
  flex-direction: column; /* stack image above text */
  align-items: center;    /* center both image and text */
  text-align: center;     /* center text for better look */
  width: 100%;
 }
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead tr {
    display: none; /* hide header row */
  }

  tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    padding: 10px;
  }

  td {
    border: none;
    position: relative;
    padding-left: 50%;
    text-align: left;
  }

  td {
    padding-left: 10px !important;
  }

  td:before {
    display: none !important;
    content: none !important;
  }

}

/* Ensure images never overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Faculty link style */
.details a {
  color: #2874A6;
  text-decoration: none;
  font-weight: bold;
}
.details a:hover {
  color: #00c8ff;
}

/* Grid for multiple people cards */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 per row on desktop */
  gap: 30px;
  margin-bottom: 30px;
  justify-items: start;
}


.person {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border-radius: 15px;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%; /* fill the width of the grid cell */
}

.person:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.faculty-container {
    display: flex;           /* arrange children side by side */
    align-items: center;     /* vertically center image and text */
    gap: 20px;               /* space between image and details */
    margin-bottom: 20px;     /* optional spacing below */
}
.research-plan {
  font-family: 'Georgia', cursive;
  font-size: 18px;
  line-height: 1.8;
  text-align:left;
  text-align:justify;
  color: #333;
}

/* =============================== */
/* Projects / Devices Section */
/* =============================== */

.project-gallery {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.project-gallery h1 {
  font-family: 'Georgia', cursive;
  font-size: 36px;
  color: #2874A6;
  margin-top: 0;
  margin-bottom: 30px;
  text-align: left;
}

/* Grid for project posters */
.project-poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row on desktop */
  gap: 30px;
  margin-top: 30px;
}

/* Individual project card */
.project-poster-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover lift effect */
.project-poster-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Project image */
.project-poster-card img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* Project title */
.project-poster-card h3 {
  font-size: 18px;
  color: #2874A6;
  margin-bottom: 10px;
}

/* Project description */
.project-poster-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

/* Sponsored projects list */
body.projects.sponsored-projects ul {
  max-width: 1100px;
  margin: 30px auto;
  padding-left: 40px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

body.projects ul li {
  margin-bottom: 15px;
}

/* =============================== */
/* Responsive Design */
/* =============================== */

@media (max-width: 1024px) {
  .project-poster-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

@media (max-width: 768px) {
  .project-poster-grid {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }

  .project-poster-card p {
    text-align: justify;
  }
}



