.team-accordion-bc9e15bf {
    display: flex;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    gap: 0;
}

.team-accordion-item-bc9e15bf {
    flex: 1;
    display: flex;
    flex-direction: row;
    position: relative;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.team-accordion-item-bc9e15bf:last-child {
    border-right: none;
}

.team-accordion-item-bc9e15bf.active {
    flex: 4;
    cursor: default;
}

.team-accordion-content-bc9e15bf {
    flex: 0 0 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    transition: flex 0.6s ease, opacity 0.4s ease 0.1s;
    white-space: nowrap;
}

.team-accordion-item-bc9e15bf.active .team-accordion-content-bc9e15bf {
    flex: 1;
    opacity: 1;
    white-space: normal;
}

.team-accordion-content-inner-bc9e15bf {
    padding: 30px;
    min-width: 250px;
}

.team-accordion-name-bc9e15bf {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
}

.team-accordion-role-bc9e15bf {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-accordion-bio-bc9e15bf {
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.team-accordion-more-btn-bc9e15bf {
	background: #333;
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	margin-bottom: 20px;
	font-weight: 600;
	transition: opacity 0.3s;
}

.team-accordion-more-btn-bc9e15bf:hover {
	opacity: 0.8;
}

.team-accordion-socials-bc9e15bf {
    display: flex;
    gap: 15px;
}

.team-accordion-socials-bc9e15bf a {
    color: #333;
    font-size: 20px;
    transition: color 0.3s;
}

.team-accordion-socials-bc9e15bf a:hover {
    color: #0073aa;
}

.team-accordion-image-wrap-bc9e15bf {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    min-width: 100px;
}

.team-accordion-image-bc9e15bf {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.team-accordion-item-bc9e15bf.active .team-accordion-image-bc9e15bf {
    filter: grayscale(0%);
}

/* Popup Styles */
.team-popup-overlay-bc9e15bf {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.team-popup-overlay-bc9e15bf.show {
	opacity: 1;
	visibility: visible;
}

.team-popup-content-bc9e15bf {
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.team-popup-close-bc9e15bf {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #333;
}

.team-popup-header-bc9e15bf {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
	padding-bottom: 20px;
}

.team-popup-image-bc9e15bf {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}

.team-popup-details-bc9e15bf {
	line-height: 1.8;
}

@media (max-width: 767px) {
    .team-accordion-bc9e15bf {
        flex-direction: column;
        height: 600px !important; /* Override inline height for mobile */
    }
    
    .team-accordion-item-bc9e15bf {
        flex-direction: column-reverse;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .team-accordion-item-bc9e15bf:last-child {
        border-bottom: none;
    }

    .team-accordion-item-bc9e15bf.active {
        flex: 3;
    }
    
    .team-accordion-content-inner-bc9e15bf {
        padding: 20px;
        min-width: 100%;
    }
}