@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

.tp-team {
    font-family: "Poppins", sans-serif;
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
}

/* MAIN SECTION TITLE */
.tp-section-title {
    font-size: 34px;
    font-weight: 700;
    color: #243f6b;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* MEMBERS GRID - 2 CARDS PER ROW */
.tp-members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

/* MEMBER CARD */
.tp-member {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 20px;
    width: calc(50% - 15px);
    border-radius: 14px;
    background: #fff;
    border: 2px solid #caa437;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.tp-member:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* IMAGE - LARGER SIZE */
.tp-member__image {
    flex-shrink: 0;
}

.tp-member__image img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
}

/* CONTENT AREA */
.tp-member__content {
    flex: 1;
    min-width: 0;
}

/* NAME */
.tp-member__name {
    font-size: 20px;
    font-weight: 700;
    color: #0b2a5b;
    margin: 0;
    line-height: 1.3;
}

/* ROLE */
.tp-member__role {
    margin-top: 8px;
    font-weight: 600;
    color: #caa437;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* BIO CONTAINER */
.tp-member__bio-wrapper {
    margin-top: 15px;
    position: relative;
}

/* BIO TEXT - COLLAPSED STATE */
.tp-member__bio {
    line-height: 1.7;
    color: #555;
    font-size: 14px;
    max-height: 85px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

/* GRADIENT FADE EFFECT */
.tp-member__bio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* EXPANDED STATE */
.tp-member__bio.expanded {
    max-height: 1000px;
}

.tp-member__bio.expanded::after {
    opacity: 0;
}

/* NO FADE FOR SHORT CONTENT */
.tp-member__bio.no-truncate::after {
    display: none;
}

/* READ MORE BUTTON */
.tp-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #243f6b, #1a2f52);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.tp-read-more:hover {
    background: linear-gradient(135deg, #caa437, #b8922f);
    transform: scale(1.05);
}

.tp-read-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.tp-read-more.active svg {
    transform: rotate(180deg);
}

/* HIDE BUTTON IF CONTENT IS SHORT */
.tp-read-more.hidden {
    display: none;
}

/* TABLET */
@media (max-width: 1200px) {
    .tp-member {
        gap: 20px;
        padding: 18px;
    }
    
    .tp-member__image img {
        width: 180px;
        height: 230px;
    }
    
    .tp-member__name {
        font-size: 18px;
    }
}

/* SMALL TABLET */
@media (max-width: 992px) {
    .tp-member {
        width: 100%;
    }
    
    .tp-member__image img {
        width: 200px;
        height: 260px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .tp-team {
        padding: 0 20px;
    }
    
    .tp-section-title {
        font-size: 20px;
        text-align: center;
    }
    
    .tp-members-grid {
        gap: 20px;
    }
    
    .tp-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .tp-member__image img {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 3/4;
    }
    
    .tp-member__name {
        font-size: 18px;
    }
    
    .tp-member__bio {
        text-align: left;
    }
}