/* Team Section Styles */
.team-section {
    padding-top: clamp(1.6rem + 3rem, 2vw + 3rem, 2.5rem + 3rem);
    background-color: white;
    min-height: 100vh;

    margin-bottom: 3rem;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 2rem;*/
}

.team-container h1 {
    text-align: center;
    font-size: var(--fts-xxl);
    color: #333;
    /*margin-bottom: 3rem;*/
    margin: 3rem 0;
    font-weight: bold;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.member-card {
    display: flex;
    background-color: #333;
    /*border: 2px solid white;*/
    /*border-radius: 8px;*/
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    min-height: 200px;
}

.member-img {
    /*flex: 0 0 200px;*/
    background-color: #ccc;
    /*border: 2px solid white;*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 1rem;*/

    /*width: 200px;*/
    width: 250px;
    object-fit: cover;
    /*max-width: 200px;*/
}

.placeholder-icon {
    position: relative;
    width: 80px;
    height: 100px;
}

.icon-head {
    width: 50px;
    height: 50px;
    background-color: #aaa;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.icon-body {
    width: 80px;
    height: 60px;
    background-color: #aaa;
    border-radius: 40px 40px 20px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.member-info {
    flex: 1;
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-info h3 {
    font-size: var(--fts-lg);
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}

.member-info h4 {
    font-size: var(--fts-md);
    font-weight: normal;
    margin-bottom: 1rem;
    color: white;
}

.member-info p {
    font-size: var(--fts-base);
    line-height: 1.6;
    color: white;
    margin: 0;
}

/*
 * Read More functionality for team member cards
 */
/*.member-description {
   
}*/

.full-text {
    display: none;
}

.member-card.expanded {
    background-color: #7A49CA;
    display: grid;
}

.member-img.expanded {
    min-width: 100%;
    height: 400px;
}

.member-description.expanded .short-text {
    display: none;
}

.member-description.expanded .full-text {
    display: inline;
}

.read-more-btn {
    background-color: #7A49CA;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: var(--fts-sm);
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #6e3fba;
}

.read-more-btn.expanded {
   /* background-color: #555;*/
    background-color: #363636;
}

.read-more-btn.expanded:hover {
    background-color: #444;
}


/* 
    Media Rules    
*/
@media (max-width: 768px) {
    .team-container {
        padding: 1rem;
    }

    .team-members {
        margin: 3rem;
    }

    .team-container h1 {
        font-size: var(--fts-xl);
        margin-bottom: 2rem;
    }
    
    .member-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .member-img {
        flex: none;
        height: 150px;
        /*border-bottom: 2px solid white;*/
        border-right: none;
        width: 100%;
        height: 300px;
    }
    
    .member-info {
        padding: 1.5rem;
    }
    
    .member-info h3 {
        font-size: var(--fts-md);
    }
    
    .member-info h4 {
        font-size: var(--fts-base);
    }
    
    .member-info p {
        font-size: var(--fts-sm);
    }
}

@media (max-width: 480px) {
    .team-container {
        padding: 0.5rem;
    }
    
    .team-members {
        margin: 0;
    }

    .member-img {
        /*height: 120px;*/
        height: 200px;
    }
    
    .placeholder-icon {
        width: 60px;
        height: 80px;
    }
    
    .icon-head {
        width: 40px;
        height: 40px;
    }
    
    .icon-body {
        width: 60px;
        height: 50px;
    }
    
    .member-info {
        padding: 1rem;
    }
}
