/* Flip Card Base */
body {
  background: url("../images/bg1.jpg") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', Times, serif, sans-serif;
}
/* Flip Card Base */
.member-card {
  perspective: 1000px;
  width: 100%;
  max-width: 280px;
  height: 320px;  /* fixed height */
  margin: 0 auto;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.member-card:hover .card-inner,
.member-card:active .card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
  text-align: center;
}

/* Front Style */
.card-front {
  background: #fff;
}
/* Make member images circular */
.member-card img {
  width: 180px;             /* fixed size for all screens */
  height: 180px;
  object-fit: cover;        /* crops the image to fit */
  border-radius: 50%;       /* makes it a perfect circle */
  margin: 0 auto 15px;      /* center the image */
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* subtle shadow */
  transition: transform 0.3s ease;
}

.member-card img:hover {
  transform: scale(1.05);   /* zoom effect on hover */
}

/* Remove shrinking on mobile */
@media (max-width: 768px) {
  .member-card img {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .member-card img {
    width: 180px;
    height: 180px;
  }
}

/* Ensure good scaling on mobile */

.card-front h3 {
  margin-top: 10px;
  font-weight: bold;
}
.card-front p.role {
  color: #1e8449;
  font-weight: 500;
}

/* Back Style */
.card-back {
  background: #1e8449;
  color: #fff;
  transform: rotateY(180deg);
  padding: 15px;
  overflow-y: auto;
}
.card-back h3 {
  font-weight: bold;
  margin-bottom: 10px;
}
.card-back p {
  font-size: 0.9rem;
  margin: 4px 0;
}

/* Responsive Grid */
@media (max-width: 576px) {
  .member-card {
    max-width: 90%;   /* consistent width */
    height: 380px;    /* same fixed height as desktop */
  }
  .card-front img {
    height: 65%;      /* same proportion for mobile */
  }
}

    /* Navbar Font Styling */
    .custom-navbar,
    .custom-navbar .nav-link,
    .custom-navbar .dropdown-menu,
    .custom-navbar .navbar-brand {
      font-family: 'Poppins', sans-serif !important;
      font-weight: 200;
      letter-spacing: 0.5px;
    }

    /* Scroll to Top Button */
#scrollTopBtn {
  display: none; /* hidden by default */
  position: fixed;
  bottom: 30px;
  right: 25px;
  z-index: 999;
  border: none;
  outline: none;
  background: #1e8449;
  color: white;
  cursor: pointer;
  padding: 12px 15px;
  border-radius: 50%;
  font-size: 20px;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#scrollTopBtn:hover {
  background: #145a32;
}
