/*!
Theme Name: Yoakum EDC
Author: Eisenberg Inc.
Version: 1.0.0
*/


/*--------------------------------------------------------------
# TEAM MEMBER GRID
--------------------------------------------------------------*/

.team-members-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/*--------------------------------------------------------------
# TEAM MEMBER CARD
--------------------------------------------------------------*/

.team-member-card {
    width: calc(50% - 20px); /* Two cards per row */
    margin-bottom: 75px;
    padding: 20px;
    position: relative;
    background-color: #fff;
}

.team-member-card h2, .team-member-card h3 {
    margin: 0;
    line-height: 1.1;
}

.team-member-card h2 {
	font-size: 2.5rem;
}


.team-member-card h3 {
	font-size: 1.563rem;
	color: var(--accent-lb);
	margin-top: 15px;
}

.team-member-card p.bio-excerpt {
	margin-top: 35px;
	margin-bottom: 0;
}

.team-member-card button.open-bio-popup {
    margin-top: 20px;
    padding: 12.5px 35.5px;
    background-color: var(--accent-lb);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.team-member-card button.open-bio-popup:hover {
	background-color: var(--orange);
}


/* Responsive layout for 767px and below - one card per row */
@media (max-width: 767px) {
    .team-member-card {
        width: 100%; 
        margin-bottom: 75px; 
    }
}


/*--------------------------------------------------------------
# TEAM MEMBER POPUP
--------------------------------------------------------------*/


/* Bio Popup Overlay - full screen with transparent dark blue */
.bio-popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 5, 43, 0.5); 
    z-index: 9998; /* Behind popup, but above everything else */
    
    /* Flexbox to center popup */
    justify-content: center;
    align-items: center;
}

/* Popup itself */
.bio-popup {
    position: relative;
    width: 100%;
    max-width: 1114px;
    max-height: 555px;
    background-color: #fff;
    border: 10px solid var(--orange);
    z-index: 9999; /* Ensure it's above the overlay */
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-radius: 10px;
}



.bio-popup-header {
    display: flex;
    flex-direction: column;
    padding: 3.5%;
    background-color: #EAF2FA;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.bio-popup-header h2, .bio-popup-header h3 {
    margin: 0;
    padding-right: 20px;
}

.bio-popup-header h2 {
    font-size: 2.5rem;
    color: var(--accent-lb);
}

.bio-popup-header h3 {
    font-size: 1.563rem;
    font-weight: 500;
    color: var(--dark-blue);
}

.bio-popup-header .close-bio-popup {
    position: absolute;
    right: 20px;
    top: 23%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 4px solid #3F9EFD;
    border-radius: 50%;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.bio-popup-header .close-bio-popup span {
    font-size: 50px;
    color: #3F9EFD;
}

.bio-popup-header .close-bio-popup:hover {
    background-color: #3F9EFD;
}

.bio-popup-header .close-bio-popup:hover span{
	color: #fff;
}

.bio-popup-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bio-popup-body {
    padding: 3.5%;
    overflow-y: auto;
    height: 300px; /* Set a fixed height for the scrollable area */
    max-height: 300px; /* Ensures the body doesn’t expand past this height */
    box-sizing: border-box; /* Include padding in the height */
}

.bio-popup-body p,
.bio-popup-body ul,
.bio-popup-body ol {
	font-size: 1.125rem;
}

.bio-popup-body::-webkit-scrollbar {
    width: 6px;
}

.bio-popup-body::-webkit-scrollbar-thumb {
    background-color: var(--accent-lb);
}


/* Responsive layout for 767px and below  */
@media (max-width: 767px) {

	.bio-popup-header h2 {
	    font-size: 2rem;
	    margin-right:45px;
	}

	.bio-popup-header h3 {
	    font-size: 1.263rem;
	    margin-right:45px;
	}
    
	.bio-popup-header .close-bio-popup {
		width: 20px;
    	height: 20px;
    	border: 2px solid #3F9EFD;
	}

	.bio-popup-header .close-bio-popup span {
	    font-size: 25px;
	}

	.bio-popup-body p,
	.bio-popup-body ul,
	.bio-popup-body ol {
		font-size: 1rem;
	}

}
