.person-card {
    background-color: rgba(245, 234, 214, 0.35);
    border: 1px solid #81533A;
    border-radius: 3px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    height: auto;
    position: relative;
    margin-bottom: 0.5rem;
}

.person-card.expanded {
    flex: 2;
    z-index: 10;
}

.person-card.collapsed {
    flex: 0.5;
    min-height: 80px;
}

.avatar-circle {
    transition: all 0.4s ease-in-out;
    border-radius: 50%;
    object-fit: cover;
}

.person-card.expanded .avatar-circle {
    display: none;
}

.content-wrapper {
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}

.person-card:not(.expanded) .content-wrapper {
    height: auto;
}

.person-card.expanded .content-wrapper {
    height: auto;
}

.basic-info {
    transition: all 0.4s ease-in-out;
    max-height: 100px;
    opacity: 1;
    overflow: hidden;
}

.person-card.expanded .basic-info {
    max-height: 0;
    opacity: 0;
}

.bio-content {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease-in-out 0.2s;
    overflow: hidden;
}

.person-card.expanded .bio-content {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
}

.bio-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.bio-image {
    flex: 0 0 35%;
    max-width: 35%;
}

.bio-text {
    flex: 1;
}

.bio-text h3 {
    font-weight: 600;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bio-text p:first-of-type {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 1rem;
}

.bio-text p:last-of-type {
    color: #555;
    line-height: 1.8;
}

.basic-info h3 {
    font-weight: 600;
    color: #333;
    font-size: 1.125rem;
}

.basic-info p {
    font-size: 0.875rem;
    color: #666;
}

.person-card:not(.expanded):hover {
    transform: translateY(-2px);
}

.click-indicator {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.person-card:hover .click-indicator {
    opacity: 0.6;
}

.person-card.expanded .click-indicator {
    display: none;
}

.person-card.expanded {
    height: auto !important;
}

#team-container {
    display: flex;
    flex-direction: column;
}