@font-face {
    font-family: 'Lato-Bold';
    src: url('../FONTS/Lato-Bold.ttf') format('truetype');
}

.members {
  width: 280px;
  height: 280px;
  border-radius: 32px;
  padding: 3px;
  position: relative;
  box-shadow: #604b4a30 0px 70px 30px -50px;
  transition: all 0.5s ease-in-out;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto; /* Center the grid */
  font-family: 'Lato-Bold';
  font-weight: 400;
}



.members .profile-pic {
  position: absolute;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: 3px;
  left: 3px;
  border-radius: 29px;
  z-index: 1;
  border: 0px solid #1C404C;
  overflow: hidden;
  transition: all 0.5s ease-in-out 0.2s, z-index 0.5s ease-in-out 0.2s;
}

.members .profile-pic img {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
  -o-object-position: 0px 0px;
  object-position: 0px 0px;
  transition: all 0.5s ease-in-out 0s;
}

.members .profile-pic svg {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: 0px 0px;
  object-position: 0px 0px;
  transform-origin: 45% 20%;
  transition: all 0.5s ease-in-out 0s;
}

.members .bottom {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  background: #1C404C;
  top: 80%;
  border-radius: 29px;
  z-index: 2;
  box-shadow: rgba(96, 75, 74, 0.1882352941) 0px 5px 5px 0px inset;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
}

.members .bottom .content {
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 160px;
}

.members .bottom .content .name {
  display: block;
  font-size: 20px;
  color: #E2A149;
  margin-top: 17px;
}

.members .bottom .content .about-me {
  display: block;
  font-size: 0.9rem;
  color: #E2A149;
  margin-top: 5px;
}

.members .bottom .bottom-bottom {
  position: absolute;
  bottom: 0.7rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.members .bottom .bottom-bottom .social-links-container {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.members .bottom .bottom-bottom .social-links-container .bi {

  gap: 1rem;
  align-items: center;
  color: white;
  text-decoration: none;
}

.members .bottom .bottom-bottom .social-links-container .bi:hover {
 
  gap: 1rem;
  align-items: center;
  color: #E2A149;
  text-decoration: none;
}

.members .bottom .bottom-bottom .social-links-container svg {
  height: 20px;
  fill: white;
  filter: drop-shadow(0 5px 5px rgba(165, 132, 130, 0.1333333333));
}

.members .bottom .bottom-bottom .social-links-container svg:hover {
  fill: #1C404C;
  transform: scale(1.2);
  
}

.members .bottom .bottom-bottom .button {
  background: #ffffff;
  color: #1C404C;
  border: none;
  border-radius: 20px;
  font-size: 0.6rem;
  padding: 0.4rem 0.6rem;
  box-shadow: rgba(165, 132, 130, 0.1333333333) 0px 5px 5px 0px;
}

.members .bottom .bottom-bottom .button:hover {
  background: #E2A149;
  color: #ffffff;
}

.members:hover {
  border-top-left-radius: 55px;
}

.members:hover .bottom {
  top: 20%;
  border-radius: 80px 29px 29px 29px;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s;
}

.members:hover .profile-pic {
  width: 100px;
  height: 100px;
  aspect-ratio: 1;
  top: 14px;
  left: 10px;
  border-radius: 50%;
  z-index: 3;
  border: 3px solid #E2A149;
  box-shadow: rgba(96, 75, 74, 0.1882352941) 0px 5px 5px 0px;
  transition: all 0.5s ease-in-out, z-index 0.5s ease-in-out 0.1s;
}

.members:hover .profile-pic:hover {
  transform: scale(1.3);
  border-radius: 0px;
}

.members:hover .profile-pic img {
  transform: scale(1.1); /* small zoom only */
  -o-object-position: 0px 25px;
   object-position: center;
  transition: all 0.5s ease-in-out 0.5s;
}

.members:hover .profile-pic svg {
  transform: scale(2.5);
  transition: all 0.5s ease-in-out 0.5s;
}

#members h1{
   text-align: center;
    color: #1C404C;
    font-family: "Lato-Bold";
    font-size: 35px;
}

.swiper-pagination {
  margin-top: 20px; /* adjust space as you like */
  position: relative; /* keeps it below */
}

.swiper-button-next,
.swiper-button-prev{
  margin-top: -50px; /* adjust space as you like */
  position: absolute; 
  color: #1C404C;
}

@media (max-width: 768px) {
      #members h1{
        padding-top: 0px;
        margin-top: -58px;
      }

      .members:hover .profile-pic {
        border: 1px solid #E2A149;
        top: 18px;
    }

    }
