<style>
/* ===== MODULE SECTION ===== */


.module-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
}

/* ===== GRID LAYOUT ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0px;
  position: relative; /* JS positions child relative to grid */

}



/* ===== TEAM MEMBER CARD ===== */
.team-member-card {
  position: relative;
  overflow: visible;
  height: 120px;
  cursor: pointer;
  border: .25px solid #ffffff;
}

/* Member Image */
.member-image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s ease;
}

.member-image:hover {
  transform: scale(1.05);
}

/* Image Placeholder */
.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #4A00E0, #8E2DE2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder svg {
  width: 100px;
  height: 100px;
  color: rgba(255, 255, 255, 0.8);
}

/* Details Container - HIDDEN BY DEFAULT */
.member-details {
  position: absolute;
  bottom: 0;               /* below card */
  left: 0;                 /* default */
  width: 500px;             /* desired width */
  background: #fff;
  color: #222;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(100%);
  z-index: 10;
  box-sizing: border-box;
}
.team-member-card:hover .member-details {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}



/* Details Content */
.name-job
{
 display:flex; 
  gap:10px;
}
.member-name, .member-role {
  font-family:DM Sans;
 color: #EE3437;
 font-size: 16px;
 font-weight: 700;
 line-height:19px;
  
}


.member-biography {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
  max-height: 200px;
  overflow-y: auto;
  gap:10px;
}


.member-biography p {
  margin-bottom: 15px;
}

.member-biography p:last-child {
  margin-bottom: 0;
}

/* ===== DESIGN BOX CARD ===== */
.design-box-card {
  background: transparent;
  border: 0.25px solid #ffffff;
}


.design-box-content {
  color: rgba(255, 255, 255, 0.8);
}

.design-box-default {
  opacity: 0.7;
}

.design-box-default svg {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.5);
}

.design-box-default h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.design-box-default p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== EMPTY STATE ===== */
.grid-empty-state {
  text-align: center;
  padding: 60px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px dashed #ccc;
  max-width: 600px;
  margin: 0 auto;
}

.grid-empty-state h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.grid-empty-state p {
  color: #666;
  font-size: 16px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  
 
  
  .member-details {
    padding: 20px;
  }
}

/* ===== TOUCH DEVICE SUPPORT ===== */
@media (hover: none) and (pointer: coarse) {
  .member-details {
    transform: translateY(0);
    opacity: 0.9;
    visibility: visible;
  }
  
}
@media(max-width:980px)
{ .team-grid {
    display:flex;
    flex-direction:column;
    flex-wrap:wrap;
    align-items: center;
    padding:20px 0px !important;
  }
   .team-member-card {
     width:90vw;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;       /* align content to top-left */
    background: #fff;              /* light card background */
    border-radius: 12px;           /* rounded corners */
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: default;
    height: auto;
  }

  /* Image + Name Row */
  .name-job {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
  }

  .member-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;          /* circle image */
    object-fit: cover;
    position: relative;           /* remove absolute */
    transform: none;
  }

  .member-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0;
  }

  .member-role {
    font-size: 14px;
    font-weight: 500;
    color: #e91e63;               /* pink or accent color */
    margin: 0;
  }

  /* Biography Text */
  .member-biography {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
    text-align: left;
    max-height: none;
    overflow: visible;
  }

  
  /* Show details inline */
  .member-details {
    position: relative;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none !important;
  }
}
}


</style>