/* Team listing styles converted from ibp-school-static/our-professional-team.php */

.section-sub {
    font-size: 1.05rem;
    color: var(--text-mid, var(--text-muted, #5f7069));
    max-width: 650px;
    margin: auto;
}

.team-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1.25;
    background-color: #000;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgb(91, 14, 28) 0%, rgba(105, 21, 36, 1.54) 2%, rgba(0, 0, 0, 0.04) 55%);
    z-index: 2;
}

.team-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.member-bio {
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .member-bio {
        max-height: 0;
        opacity: 0;
        transition: all 0.4s ease;
        overflow: hidden;
    }

    .linkedin-link {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.4s ease;
    }

    .team-card:hover .team-overlay {
        background: #691524;
        background: linear-gradient(0deg, rgb(105 21 36) 20%, rgb(75 0 0 / 40%) 100%);
    }

    .team-card:hover .member-bio {
        max-height: 210px;
        opacity: 1;
        margin-top: 10px;
    }

    .team-card:hover .linkedin-link {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .team-card {
        aspect-ratio: 1 / 1.4;
    }

    .team-overlay {
        background: linear-gradient(to top, rgb(91, 14, 28) 0%, rgba(105, 21, 36, 1.54) 4%, rgba(0, 0, 0, 0.04) 90%) !important;
    }

    .linkedin-link {
        opacity: 1 !important;
        visibility: visible !important;
        display: inline-block !important;
        transform: none !important;
        color: #ffffff !important;
        font-size: 2.8rem !important;
    }

    .member-bio {
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 10px !important;
    }

    .col-lg-9 {
        padding-top: 0px;
    }

    .about__img-frame--top {
        width: 100%;
        height: auto;
        top: 0px;
        left: 0px;
        border: 5px solid var(--white, #fff);
    }

    section#about {
        padding: 40px 0px 40px 0px !important;
    }
}

@media (max-width: 576px) {
    .team-card {
        aspect-ratio: 1 / 1.25;
    }

    .member-bio {
        font-size: 0.75rem;
    }

    section.team-page {
        padding: 25px;
    }
}

@media (max-width: 991px) {
    .section-title { font-size: 2rem; }
}

@media (max-width: 576px) {
    .team-card { aspect-ratio: 1 / 1.1; }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.team-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1.15;
    transition: all 0.3s ease-in-out;
    background-color: #f4f4f4;
    cursor: pointer;
}

.team-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #ffffff;
}

.member-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: white;
}

.member-role {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.linkedin-link {
    color: #ffffff;
    font-size: 1.8rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.team-card:hover .linkedin-link {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.linkedin-link:hover {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .team-overlay { padding: 15px; }
    section.team-page { padding: 25px; }
}
