body {
  /* background-color: #E1EBF5; */
  background-color: #F7F5F0;
  color: #496E83;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.people-page {
  padding: 80px 0;
}

.people-heading {
  text-align: center;
  font-size: 56px;
  margin-bottom: 20px;
}

/* Dr. Mahusudhan section */
.madhu-section {
  width: 100%;
  background-color: #E1EBF5; /* updated padding color */
  padding: 60px;
}

.madhu-inner-box {
  background-color: #F7F5F0;
  padding: 60px;
  display: flex;
  gap: 40px;
  width: 100%; /* full screen width */
  box-sizing: border-box;
  height: auto;
}

.madhu-description {
  flex: 2;
  color: #496E83;
  padding-left: 25%;
  text-align: left;
} 

.madhu-description h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.madhu-description p {
  font-size: 18px;
  line-height: 1.6;
}

.madhu-photo {
  flex: 1;
  display: flex;
  align-items: stretch; /* makes inner GIF match full height */
}

.madhu-photo img {
  width: 100%;
  height: 100%; /* match height of .inner-box */
  object-fit: cover;
  border-radius: 8px;
}

.menbers-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); */
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 0 20%;
}

.member {
  text-align: center;
}

.member a {
  text-decoration: none;
}

/* .software-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
} */

.member-image {
  width: auto;
  height: 240px;
  object-fit: contain;
  /* border-radius: 0; */
  display: block;
  margin: 0 auto 10px auto;
}

.member-name {
  font-size: 24px;
  margin: 10px 0 5px 0;
  color: #496E83;
  text-decoration: none;
}

.member-description {
  font-size: 18px;
}

.alumni-members {
  padding-left: 25%;
  padding-right: 25%;
}

.alumni-members li {
  font-size: 18px;
}

.modal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6); /* dimmed background */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #F7F5F0;
  width: 60%;
  max-width: 900px;
  height: 400px;
  display: flex;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #496E83;
}

/* .modal-left {
  flex: 2;
  padding: 40px;
  color: #496E83;
} */

.modal-left {
  flex: 2;
  padding: 40px;
  color: #496E83;
  overflow-y: auto;
  max-height: 400px; /* or 100% depending on modal height */
}

.modal-left::-webkit-scrollbar {
  width: 6px;
}

.modal-left::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.modal-left h2 {
  margin-top: 0;
  font-size: 28px;
}

.modal-left p {
  font-size: 16px;
  line-height: 1.6;
}

.modal-right {
  flex: 1;
  background-color: #E1EBF5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-right img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 20px;
}
