.card {
    padding: 24px 40px;
    border-radius: 16px;
    background: #F8F8F8;
    box-shadow: 0px 10px 20px 0px rgba(124, 124, 124, 0.10);
    word-wrap: break-word;
}

    .card.mobile {
        padding: 20px 20px;
    }

.card-right-wrapper {
    display: flex;
    width: 100%;
}

.card-right {
    gap: 10px;
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    margin-left: 16px;
}

.card-right-grow {
    flex-shrink: 0;
    flex-grow: 1;
    width: auto;
    transition: max-width 0.4s ease;
    max-width: 100%;
}

    .card-right-grow.collapsed {
        max-width: 0;
        overflow: hidden;
    }

.card-content {
    display: flex;
}

.card .card-title {
    color: #223F3B;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    height: 30px;
    justify-content: center;
    height: auto;
}

    .info-block.collapsed {
        gap: 8px;
    }

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

    .info-row .lines {
        display: flex;
        flex-direction: column;
    }

    .info-row .text {
        font-size: 14px;
        line-height: 22px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .info-row .small {
        font-size: 12px;
        line-height: 15px;
    }

    .info-row .svg-icon {
        width: 18px;
        height: auto;
        display: inline-block;
    }

.speciality {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 20px;
    border-radius: 30px;
    background: #223F3B;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #FFF;
    font-family: Inter;
    font-style: normal;
    font-weight: 400;
}

.view-specialist {
    color: #EB8C4B;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.fade-toggle {
    opacity: 1;
    transition: opacity 0.5s ease, max-height 0.5s ease;
    overflow: hidden;
}

    .fade-toggle.collapsed {
        display: none;
    }

.animated-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    transition: gap 0.4s ease, flex-direction 0.4s ease;
}

    .animated-wrapper.full-mode {
        flex-direction: row;
        gap: 16px;
    }

    .animated-wrapper.compact-mode {
        flex-direction: column;
        gap: 8px;
        align-items: start;
    }

    .animated-wrapper .info-row {
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

.selected-card {
    background-color: #E7F7E9;
    transition: background-color 0.3s ease;
}

.hyperlink {
    color: #223F3B;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.hyperlink-button {
    color: #EB8C4B;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

    .hyperlink.space {
        margin-left: 10px;
    }

.profile-photo {
    width: 100%;
    height: auto;
    display: block; /* prevents inline spacing issues */
}

.profile-photo-placeholder {
    width: 36px;
    height: 36px;
}

.photo-container {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    transition: width 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
    flex-shrink: 0;
    background: #E7F7E9;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .photo-container.collapsed {
        width: 0;
        opacity: 0;
        transform: scale(0.8);
        pointer-events: none;
    }

    .photo-container.mobile {
        width: 60px;
        height: 60px;
        border-radius: 5px;
    }