/* Scope everything to the pyramid container to avoid affecting entire site */
.pyramid-container {
  position: relative;
  /* width: 300px; */
  height: 520px;
  padding-top: 90px;
  text-align: center;
}

/* Make pyramid SVG isolated */
.pyramid-container svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pyramid-gif {
  max-width: 340px;
}

/* Each member wrapper */
.pyramid-container .member-wrapper {
  position: absolute;
  width: 90px;
  height: 90px;
  z-index: 50;
}

/* Member photo */
.pyramid-container .member {
  width: 100px;
  height: 100px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease;
  box-sizing: border-box;
}

.pyramid-container .member img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.pyramid-container .member-wrapper:hover {
  z-index: 999 !important;
}

.pyramid-container .member:hover {
  transform: scale(1.30);
}

/* Member card (hidden until hover) */
.pyramid-container .member-card {
  position: absolute;
  display: none;
  min-width: 220px;
  z-index: 60;
  box-sizing: border-box;
}

/* Show card on hover */
.pyramid-container .member-wrapper:hover .member-card {
  display: block;
  width: 300px;
}

/* Bootstrap card styling override */
.pyramid-container .member-card .card {
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  padding: 12px;
  background: #fff;
}

/* Card positions */
.pyramid-container .pos-right .member-card {
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
}

.pyramid-container .pos-left .member-card {
  left: calc(103px + 12px);
  top: 50%;
  transform: translateY(-50%);
}

.pyramid-container .pos-below .member-card {
  left: 275px;
  top: calc(-4% + 12px);
  transform: translateX(-50%);
}


.member-card .card p span{
  color: #666;
}


.hover-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 520px;
  pointer-events: none;
}

#arrow-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

#w1 {
  top: -2%;
  left: 49%;
  transform: translateX(-50%);
}

#w2 {
  top: 30%;
  left: 20%;
}

#w3 {
  top: 30%;
  right: 20%;
}

#w4 {
  top: 58%;
  left: 10%;
}

#w5 {
  top: 58%;
  right: 13%;
}

/* Card 1 (w1) — Top Centre Member */
#c1 {
  position: absolute;
  top: 0vw;
  left: 16vw;
  transform: translateX(-50%);
}

/* Card 2 (w2) — Middle Left */
#c2 {
  position: absolute;
  top: -6vw;
  left: -11vw;
}

/* Card 3 (w3) — Middle Right */
#c3 {
  position: absolute;
  top: -6vw;
  left: -1vw;
}

/* Card 4 (w4) — Bottom Left */
#c4 {
  position: absolute;
  top: 3vw;
  left: -19vw;
  /* width: 400px; */
}

/* Card 5 (w5) — Bottom Right */
#c5 {
  position: absolute;
  top: 11vw;
  left: -5vw;
}

.pyramid {
  width: 600px;
  height: 540px;
  margin-top: -60px;
}



/*---new ---*/
.member {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  background: none;
  border: 3px solid #10107e7b;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
  transition: .3s ease;
}

.member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover effect */
.member:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.35);
}


/* ----------------------------
   3D CARDS (Optional - unchanged)
----------------------------- */
.member-card .card {
  border-radius: 12px;
  padding: 15px;
  background: #ffffff;
  box-shadow:
    6px 6px 15px rgba(0, 0, 0, 0.2),
    -6px -6px 12px rgba(255, 255, 255, 0.7);
  transform: translateZ(30px);
  transition: 0.3s ease;
}

.member-card .card:hover {
  transform: translateZ(45px) scale(1.03);
  box-shadow:
    12px 12px 25px rgba(0, 0, 0, .25),
    -8px -8px 18px rgba(255, 255, 255, .9);
}





/* TABLET VIEW
============================== */
@media (max-width: 991px) {

  /* Hide pyramid graphics but KEEP container visible */
  .pyramid,

  .pyramid-video,
  .pyramid-video-wrap,
  .hover-arrow,
  .pyramid-svg,
  .member-wrapper,
  .member-card,
  .member {
    display: none !important;
  }

  .pyramid-gif {
    max-width: 300px;
  }

  /* Tablet cards container */
  .tablet-team-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding: 20px 10px;
    width: 100%;
  }

  /* Last card centered (5th card has no pair) */
  .tablet-team-cards .tablet-card:first-child {
    grid-column: span 2;
    justify-self: center;
    width: 80%;
  }

  /* Card styling */
  .tablet-team-cards .tablet-card {
    /* display: flex; */
    /* align-items: center; */
    gap: 15px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
    transition: 0.25s ease;
  }

  .tablet-team-cards .tablet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.15);
  }

  /* Image left side */
  .tablet-team-cards .tablet-card .tablet-img {
    width: 85px;
    height: 85px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 20px;
  }

  /* Info right side */
  .tablet-team-cards .t-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }

  .tablet-team-cards .t-info p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
  }
}













/* ============================
        mobile responsive 
================================ */

@media (max-width: 426px) {
  .pyramid-container {
    transform: scale(0.6);
    transform-origin: top center;
    margin-left: -20px !important;
  }

  .pyramid-container .member-card .card {
    min-width: 170px;
  }

  .hover-arrow {
    display: none !important;
  }

  .pyramid {
    width: 400px !important;
  }

  #w1 {
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
  }

  #w2 {
    top: 30%;
    left: 21%;
  }

  #w3 {
    top: 39%;
    right: 13%;
  }

  #w4 {
    top: 63%;
    left: 6%;
  }

  #w5 {
    top: 63%;
    right: 6%;
  }

  #c1 {
    position: absolute;
    top: -142px;
    left: 113px;
    width: 291px;
    transform: scale(1);
  }
}


ul.team-list {
  list-style: none;
  padding: 0;
}

ul.team-list li {
  padding-bottom: 10px;
}







/* ------------------------------
   Team member modal (append to pyramid.css)
   ------------------------------ */

.team-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.team-modal {
  width: 100%;
  max-width: 695px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  padding: 26px;
  position: relative;
  transform: translateY(0);
  transition: transform .22s ease, opacity .22s ease;
  opacity: 1;
}

.team-modal h2 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.team-modal .role {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #666;
  font-weight: 600;
}

.team-modal .desc {
  font-size: 15px;
  color: #333;
  line-height: 1.55;
  margin-top: 8px;
}

.team-modal .close-btn {
  position: absolute;
  right: -5px;
  top: 0px;
  width: 50px;
  height: 50px;
  /* border-radius: 50%; */
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 25px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}






.team-modal .close-btn:focus-visible {
  outline: 0;
}

.team-modal .modal-inner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.team-modal .modal-inner .photo {
  width: 150px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); */
}

/* Responsive */
@media (max-width:520px) {
  .team-modal {
    padding: 18px;
  }

  .team-modal h2 {
    font-size: 18px;
  }

  .team-modal .role,
  .team-modal .desc {
    font-size: 14px;
  }

  .team-modal .modal-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-modal .modal-inner .photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
  }
}

.team-modal-overlay.show {
  display: flex;
}