.sp-card {
  position: relative;
  max-width: 380px;
  margin: 10px auto;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.sp-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.sp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #e2f9f7;
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.sp-card:hover::before {
  transform: translateX(0);
}

.sp-body {
  position: relative;
  z-index: 1;
  padding: 10px;
  text-align: center;
}
.sp-body img {
  width: 100%;
  border-radius: 8px;
}
.sp-name {
  font-size: 22px;
  font-weight: 700;
  margin-top: 10px;
  color: #03505f;
}
.sp-more {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #03505f;
  cursor: pointer;
  text-decoration: underline;
}

.sp-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}
.sp-modal.active {
  display: block;
}
.sp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.sp-box {
  position: relative;
  max-width: 650px;
  max-height: 80vh;
  margin: 15vh auto;
  padding: 25px;
  background: #e2f9f7;
  border-radius: 14px;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  animation: spScale 0.3s ease;
  font-size: 14px;      
  text-align: justify;       
}
@keyframes spScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.sp-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
  color: #03505f;
}
.sp-box h3 {
  color: #03505f;
  margin-bottom: 10px;
  font-size: 18px;
  text-align: center;
}
.sp-box p {
  font-size: 14px;
  line-height: 1.6;
  color: #03505f;
  text-align: justify; 
}
.sp-bio {
  display: none;
  text-align: justify;
  color:#055361;
  font-size: 14px;
}


.container-part {
    padding: 5rem 1rem;
}







/* =====================
Guest Speaker Section
===================== */
.people-section {
    max-width: 1100px;
    margin: 0 auto;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* =====================
Person Card
===================== */
.person-card {
    border-radius: 24px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Hover effect */
.person-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* Shadow effect */
    border: 2px solid #67e8f9; /* Optional colored border */
}

/* Active state (clicked) */
.person-card.active {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 2px solid #67e8f9;
}

/* =====================
Header (Visible)
===================== */
.person-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 10px;
}

.person-header img {
    width: 350px;
    height: 350px;
    object-fit: cover;
}

.person-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #055361;
    margin-bottom: 0.25rem;
}

.person-header p {
    font-size: 16px;
    color: #20A496;
    text-align: center;
}

/* =====================
Collapsible Content
===================== */
.person-content {
    max-height: 0;           /* Collapsed by default */
    overflow: hidden;        /* Hide content when collapsed */
    padding: 0 1.75rem;      /* Horizontal padding only */
    transition: max-height 0.5s ease, padding 0.4s ease;
}

.person-content p {
    font-size: 16px;
    color: #374151;
}

/* Active state (expand content) */
.person-card.active .person-content {
    max-height: 300px;        /* Expand */
    padding: 0.75rem 1.75rem; /* Add vertical padding */
    overflow-y: auto;         /* Scroll if content is taller */
}

/* =====================
Mobile
===================== */
@media (max-width: 768px) {
    .person-header {
        flex-direction: column;
        text-align: center;
    }
}