/*===============================
  Roster styling
===============================*/

.team-section {
  margin-bottom: 50px;
}

.team-section .col{
  max-width: 450px;
}

.team-section h2 {
  color: var(--yellow);
  margin-bottom: 10px;
  font-size: 70px;
}

.team-section h3 {
  color: var(--white);
  text-align: center;
  margin-top: 20px;
  margin-bottom: 15px;
}

.team-member {
  position: relative;
  text-align: center;
  margin-top: 30px;
  margin-left: 10px;
  margin-right: 10px;
  padding: 20px;
  border-radius: 15px;
  /* border: 1px solid var(--orange); */
  box-shadow:
    0 0 5px var(--orange),
    0 0 15px rgba(255, 118, 0, 0.3),
    0 0 45px rgba(255, 118, 0, 0.12);
}

.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 15px;
}

.team-member h4{
  margin-top: 10px;
  color: var(--white);
}

.team-member h5{
  margin-top: 10px;
  color: var(--white);
  font-size: 15px;
}

#pi {
  margin-top: 50px;
}

/*===============================
  Hover effects for team members
================================*/

/* Overlay for member description */
.member-description {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%; 
 
  background-color: rgba(0, 0, 0, 0.6); /* semi-transparent black */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  display: flex;
  align-items: center;      /* vertical centering */
  justify-content: center;  /* horizontal centering */

  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show the overlay on hover */
.team-member:hover .member-description {
  opacity: 1;
}

/* Style the text inside the overlay */
.member-description p {
  padding: 13px;
  margin: 0;
  font-size: 17px;
  color: var(--white);
}