.wp-block-saae-member-card.saae-member-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    height: 100%;
    color: inherit;
}

.saae-member-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.saae-member-card__media {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
    width: 100%;
    aspect-ratio: 1 / 1;
    img {
        transition: filter 0.3s ease-in-out;
        filter: grayscale(1);
    }
    &:hover {
        img {
            filter: grayscale(0);
        }
    }
}

.saae-member-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saae-member-card__image--placeholder {
    background: #e9ecef;
}

.saae-member-card__role-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);

    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #006898;
}

.saae-member-card__body {
    display: block;
    flex: 1 1 auto;
}

.saae-member-card__name {
    margin: 0 0 6px;

    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: #006898;
}

.saae-member-card__link:hover .saae-member-card__name {
    text-decoration: underline;
}

.saae-member-card__role {
    margin-bottom: 4px;

    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #BCBDBF;
}

.saae-member-card__airline {
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    color: #6774FF;
}

.saae-member-card__socials {
    display: flex;
    gap: 10px;
}

.saae-member-card__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #BCBDBF;
    color: #6774FF;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.saae-member-card__social:hover,
.saae-member-card__social:focus {
    opacity: 0.75;
    color: #fff;
}

.saae-member-card__social svg {
    width: 18px;
    height: 18px;
    display: block;
}

.saae-member-card__bio-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: #BCBDBF;
    color: #6774FF;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease-in-out;

    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0;
}

.saae-member-card__bio-toggle:hover,
.saae-member-card__bio-toggle:focus {
    opacity: 0.75;
    color: #fff;
}

.saae-member-card__bio-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    margin-top: 8px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);

    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-height: 0;  /* Initially collapsed */
    overflow: hidden;
    opacity: 0;  /* Initially hidden */
    transition: opacity 0.3s ease, max-height 0.3s ease;  /* Smooth transition */
}

.saae-member-card__bio-content > :first-child {
    margin-top: 0;
}

.saae-member-card__bio-content > :last-child {
    margin-bottom: 0;
}

.saae-member-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;  /* Distribute social icons and button */
    gap: 2px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.saae-member-card__footer .saae-member-card__socials {
    flex: 0 0 auto;  /* Keeps the social icons in a row */
}

.saae-member-card__footer .saae-member-card__bio-toggle {
    flex: 0 0 auto;  /* Keep the button from stretching */
    margin-left: auto; /* Ensure it's aligned to the right */
}

.saae-member-card__bio-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: #BCBDBF;
    color: #6774FF;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease-in-out;

    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0;
}

.saae-member-card__bio-content.is-open {
    opacity: 1;
    max-height: 200px; /* Adjust depending on the bio content length */
}

.saae-member-card__bio-toggle:hover,
.saae-member-card__bio-toggle:focus {
    opacity: 0.75;
    color: #fff;
}